• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# C1类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中C1的典型用法代码示例。如果您正苦于以下问题:C# C1类的具体用法?C# C1怎么用?C# C1使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



C1类属于命名空间,在下文中一共展示了C1类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: c1Upload1_ValidatingFile

 protected void c1Upload1_ValidatingFile(object sender, C1.Web.Wijmo.Controls.C1Upload.ValidateFileEventArgs e)
 {
     if (e.IsValid)
         this.TextBox1.Text += e.UploadedFile.FileName + Environment.NewLine;
     else
         this.TextBox2.Text += e.UploadedFile.FileName + Environment.NewLine;
 }
开发者ID:tforsberg,项目名称:z,代码行数:7,代码来源:Validation.aspx.cs


示例2: grid_AutoGeneratingColumn

 private void grid_AutoGeneratingColumn(object sender, C1.WPF.DataGrid.DataGridAutoGeneratingColumnEventArgs e)
 {
     if (e.Property.Name == "CountryId")
     {
         _colCountry.DisplayMemberPath = "Name";
         _colCountry.SelectedValuePath = "Id";
         _colCountry.SortMemberPath = "CountryId";
         _colCountry.FilterMemberPath = "CountryId";
         _colCountry.Header = "Country";
         _colCountry.Binding = new Binding() { Path = new PropertyPath("CountryId"), Mode = BindingMode.TwoWay };
         _colCountry.ItemsSource = Country.AllCountries;
         e.Column = _colCountry;
     }
     else if (e.Property.Name == "RegionId")
     {
         _colRegion.DisplayMemberPath = "Name";
         _colRegion.SelectedValuePath = "Id";
         _colRegion.SortMemberPath = "RegionId";
         _colRegion.FilterMemberPath = "RegionId";
         _colRegion.Header = "Region";
         _colRegion.Binding = new Binding() { Path = new PropertyPath("RegionId"), Mode = BindingMode.TwoWay };
         _colRegion.ItemsSource = Region.AllRegions;
         e.Column = _colRegion;
     }
 }
开发者ID:mdjabirov,项目名称:C1Decompiled,代码行数:25,代码来源:MainWindow.xaml.cs


示例3: c1TrueDBGridTimeForAlarm_FetchRowStyle_1

        private void c1TrueDBGridTimeForAlarm_FetchRowStyle_1(object sender, C1.Win.C1TrueDBGrid.FetchRowStyleEventArgs e)
        {
            C1.Win.C1TrueDBGrid.C1TrueDBGrid tdbgrid = sender as C1.Win.C1TrueDBGrid.C1TrueDBGrid;

            C1.Win.C1TrueDBGrid.Style S = new C1.Win.C1TrueDBGrid.Style();
            Font myfont;
            myfont = new Font(S.Font, FontStyle.Bold);
            S.Font = myfont;
            try
            {
                // Warning
                if ((bool)tdbgrid[e.Row, "TimeWarningOn"] )
                {
                //    tdbgrid.Columns["TimeWarningOn"].ValueItems.Translate = true;
               //     tdbgrid.Columns["TimeAlarmOn"].ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.Normal;
                    e.CellStyle.BackColor = System.Drawing.Color.Orange;
                    e.CellStyle.Alpha = 100;
                }
                // Alarm
                if ((bool)tdbgrid[e.Row, "TimeAlarmOn"] )
                {
                    e.CellStyle.BackColor = System.Drawing.Color.Red;
                    e.CellStyle.Alpha = 100;
                  //  e.CellStyle.Font = myfont;
                    if (tdbgrid.Columns["TimeAlarmOn"].Caption == "TimeAlarmOn")
                    {
                      //  tdbgrid.Columns["TimeAlarmOn"].ValueItems.Translate = true;
                     //   tdbgrid.Columns["TimeAlarmOn"].ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.Normal;
                      //  e.CellStyle.ForegroundImage = imageList1.Images[0];
                    }

                }
            }
            catch { }
        }
开发者ID:rahulbishnoi,项目名称:LabM,代码行数:35,代码来源:TimeForAlarmForm.cs


示例4: SetIndexesTests

        public void SetIndexesTests()
        {
            dynamic mocks = new MockBuilder();

            C1 key1 = new C1(), val1 = new C1();
            C2 key2 = new C2(), val2 = new C2();
            C1 key3 = null, val3 = null;
            mocks[key1, 33] = val1;
            mocks[key2, 55] = val2;
            mocks[key3, 66] = val3;

            mocks["hello"] = new { };
            mocks["goodbye"] = 989898;

            var copiled = COMPILER.Compile(typeof(SetIndexes));
            var subject = (SetIndexes)
                COMPILER.Compile(typeof(SetIndexes)).GetConstructors()[0]
                    .Invoke(new object[] { new ObjectBase(new DxSettings { TestForInvalidMocks = false }, mocks) });

            Assert.AreEqual(subject.Get1(key1, 33), val1);
            Assert.AreEqual(subject.Get1(key2, 55), val2);
            Assert.AreEqual(subject.Get1(key3, 66), val3);

            Assert.AreEqual(subject["goodbye"], 989898);
        }
开发者ID:ShaneGH,项目名称:Dynamox,代码行数:25,代码来源:Compiler_SetFieldsAndProperties.cs


示例5: C1VectorLayer_UriSourceFailed

 private void C1VectorLayer_UriSourceFailed(object sender, C1.WPF.Maps.C1VectorLayer.UriSourceFailedEventArgs e)
 {
     Dispatcher.BeginInvoke(new Action( () =>
       {
     txt.Text = "Can't load data";
       }));
 }
开发者ID:mdjabirov,项目名称:C1Decompiled,代码行数:7,代码来源:EarthQuakes.xaml.cs


示例6: c1TrueDBGridTimeForAlarm_FetchCellStyle

        private void c1TrueDBGridTimeForAlarm_FetchCellStyle(object sender, C1.Win.C1TrueDBGrid.FetchCellStyleEventArgs e)
        {
            C1.Win.C1TrueDBGrid.C1TrueDBGrid tdbgrid = sender as C1.Win.C1TrueDBGrid.C1TrueDBGrid;

            if ((bool)tdbgrid[e.Row, "TimeWarningOn"])
            {
                e.CellStyle.BackColor = System.Drawing.Color.Orange;
                e.CellStyle.Alpha = 100;
                //  e.CellStyle.Font = myfont;
                if (e.Col == 1 )
                {
                    tdbgrid.Columns["TimeAlarmOn"].ValueItems.Translate = true;
                    tdbgrid.Columns["TimeAlarmOn"].ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.Normal;
                    e.CellStyle.ForegroundImage = imageList1.Images[1];
                }

            }
            if ((bool)tdbgrid[e.Row, "TimeAlarmOn"])
            {
                e.CellStyle.BackColor = System.Drawing.Color.Red;
                e.CellStyle.Alpha = 100;
                //  e.CellStyle.Font = myfont;
                if ( e.Col==1)
                {
                    tdbgrid.Columns["TimeAlarmOn"].ValueItems.Translate = true;
                    tdbgrid.Columns["TimeAlarmOn"].ValueItems.Presentation = C1.Win.C1TrueDBGrid.PresentationEnum.Normal;
                    e.CellStyle.ForegroundImage = imageList1.Images[0];
                }

            }
        }
开发者ID:rahulbishnoi,项目名称:LabM,代码行数:31,代码来源:TimeForAlarmForm.cs


示例7: ValidateExtension

        private void ValidateExtension(C1.Web.Wijmo.Controls.C1Upload.ValidateFileEventArgs e, string ext)
        {
            if (e.IsValid) return;

            if (string.Compare(e.UploadedFile.Extension, ext, true) == 0)
                e.IsValid = true;
        }
开发者ID:tforsberg,项目名称:z,代码行数:7,代码来源:CustomValidation.aspx.cs


示例8: c1TrueDBGrid2_AfterColUpdate

        private void c1TrueDBGrid2_AfterColUpdate(object sender, C1.Win.C1TrueDBGrid.ColEventArgs e)
        {

            // if (e.ColIndex == 0)
            // {
            AddItemsFromList();
            // }
        }
开发者ID:rehman922,项目名称:VIRETAIL,代码行数:8,代码来源:ItemTransfer.cs


示例9: C1DataGrid_LoadedRowDetailsPresenter

 private void C1DataGrid_LoadedRowDetailsPresenter(object sender, C1.Silverlight.DataGrid.DataGridRowDetailsEventArgs e)
 {
     if (userStatisticViewModel.SelectedQuizResult == null)
         return;
     e.DetailsElement.DataContext = new AnswersStatisticViewModel(
         (e.Row.DataItem as MRZS.Web.Models.QuestionLog).Id,
         userStatisticViewModel.SelectedQuizResult.EntityId);
 }
开发者ID:k0stya,项目名称:quizApp,代码行数:8,代码来源:UserStatistic.xaml.cs


示例10: ClearDataInGrid

 public static void ClearDataInGrid(C1.Win.C1FlexGrid.C1FlexGrid i_fg)
 {
     if (i_fg.Rows.Count == i_fg.Rows.Fixed)
     {
         return;
     }
     i_fg.Rows.Count = i_fg.Rows.Fixed;
 }
开发者ID:nguyendanhtu,项目名称:bki-quan-ly-du-toan,代码行数:8,代码来源:CGridUtils.cs


示例11: DataGridNumericColumn_FilterLoading

 private void DataGridNumericColumn_FilterLoading(object sender, C1.WPF.DataGrid.DataGridFilterLoadingEventArgs e)
 {
     var filter = ((DataGridFilterList)((DataGridContentFilter)e.Filter).Content).Items[0] as DataGridHistogramFilter;
     filter.SetBinding(DataGridHistogramFilter.ItemsSourceProperty, new Binding("ItemsSource")
     {
         Source = grid,
     });
 }
开发者ID:mdjabirov,项目名称:C1Decompiled,代码行数:8,代码来源:CustomFilters.xaml.cs


示例12: C1GridView1_SelectedIndexChanging

 protected void C1GridView1_SelectedIndexChanging(object sender, C1.Web.Wijmo.Controls.C1GridView.C1GridViewSelectEventArgs e)
 {
     if (C1GridView1.SelectedRow != null)
     {
         string smbl = C1GridView1.Rows[e.NewSelectedIndex].Cells[2].Text;
         ObjectDataSource2.SelectParameters["Symbol"].DefaultValue = smbl;
     }
 }
开发者ID:tforsberg,项目名称:z,代码行数:8,代码来源:Default.aspx.cs


示例13: Tooltip1_OnAjaxUpdate

 protected void Tooltip1_OnAjaxUpdate(C1.Web.Wijmo.Controls.C1ToolTip.C1ToolTipCallBackEventArgs e)
 {
     if (e.UpdatePanel != null)
     {
         Control c = e.UpdatePanel.FindControl("HyperLink1");
         HyperLink1.Text = e.Source;
     }
 }
开发者ID:tforsberg,项目名称:z,代码行数:8,代码来源:Template.aspx.cs


示例14: grid_AutoGeneratingColumn

 private void grid_AutoGeneratingColumn(object sender, C1.WPF.DataGrid.DataGridAutoGeneratingColumnEventArgs e)
 {
     Common.HandleColumnAutoGeneration(e);
     if (e.Property.Name == "ImageUrl")
     {
         e.Cancel = true;
     }
 }
开发者ID:mdjabirov,项目名称:C1Decompiled,代码行数:8,代码来源:FullTextSearchPage.xaml.cs


示例15: Switch_2

	static int Switch_2 (C1 o)
	{
		switch (o) {
			case null:
				return 2;
		}

		return 3;
	}
开发者ID:Profit0004,项目名称:mono,代码行数:9,代码来源:test-pattern-06.cs


示例16: nbPeriod_ValueChanged

 private void nbPeriod_ValueChanged(object sender, C1.WPF.PropertyChangedEventArgs<double> e)
 {
     MovingAverage ms = DataContext as MovingAverage;
       if (ms != null)
       {
     ms.Period = (int)nbPeriod.Value;
     ms.Label = string.Format("MovAvg {0}", ms.Period);
       }
 }
开发者ID:mdjabirov,项目名称:C1Decompiled,代码行数:9,代码来源:MovingAverageEditor.xaml.cs


示例17: Main

 public static void Main() {
     C1 c1 = new C1();
     C2 c2 = new C2();
     c1.meth1(42);
     c2.meth1(49);
     c1 = c2;
     c1.meth1(53);
     Console.WriteLine("Finished!");
 }
开发者ID:gbarnett,项目名称:shared-source-cli-2.0,代码行数:9,代码来源:virtual1.cs


示例18: C1DataGrid_LoadedRowDetailsPresenter

        private void C1DataGrid_LoadedRowDetailsPresenter(object sender, C1.Silverlight.DataGrid.DataGridRowDetailsEventArgs e)
        {
            var child = VisualTreeHelper.GetChild(e.DetailsElement, 0) as ProgressBar;
            child.IsIndeterminate = true;

            var user = e.Row.DataItem as MRZS.Web.Models.User;

            e.DetailsElement.DataContext = new UserStatisticViewModel(user.UserId, true);
        }
开发者ID:k0stya,项目名称:quizApp,代码行数:9,代码来源:Statistic.xaml.cs


示例19: nbOrder_ValueChanged

 private void nbOrder_ValueChanged(object sender, C1.WPF.PropertyChangedEventArgs<double> e)
 {
     TrendLine tl = DataContext as TrendLine;
       if (tl != null)
       {
     tl.Order = (int)nbOrder.Value;
     tl.Label = CreateLabel(tl);
       }
 }
开发者ID:mdjabirov,项目名称:C1Decompiled,代码行数:9,代码来源:TrendLineEditor.xaml.cs


示例20: DataGridTextColumn_FilterLoading

 private void DataGridTextColumn_FilterLoading(object sender, C1.WPF.DataGrid.DataGridFilterLoadingEventArgs e)
 {
     var treeFilter = ((DataGridFilterList)((DataGridContentFilter)e.Filter).Content).Items[0] as DataGridTreeViewFilter;
     treeFilter.SetBinding(DataGridTreeViewFilter.SourceProperty, new Binding("ItemsSource")
     {
         Source = grid,
         Converter = new TreeFilterConverter(),
     });
 }
开发者ID:mdjabirov,项目名称:C1Decompiled,代码行数:9,代码来源:CustomFilters.xaml.cs



注:本文中的C1类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# C1Test类代码示例发布时间:2022-05-24
下一篇:
C# BytesRef类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap