本文整理汇总了C#中Gtk.TreeStore.InsertNodeAfter方法的典型用法代码示例。如果您正苦于以下问题:C# TreeStore.InsertNodeAfter方法的具体用法?C# TreeStore.InsertNodeAfter怎么用?C# TreeStore.InsertNodeAfter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.TreeStore
的用法示例。
在下文中一共展示了TreeStore.InsertNodeAfter方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Order
public Order()
: base(Gtk.WindowType.Toplevel)
{
this.Build();
notebook1.CurrentPage = 0;
ComboWorks.ComboFillReference(comboExhibition, "exhibition", ComboWorks.ListMode.WithNo, true, "ordinal");
dateArrval.Date = DateTime.Today;
//Создаем таблицу номенклатуры
ComboBox TempCombo = new ComboBox();
ComboWorks.ComboFillReference(TempCombo, "materials", ComboWorks.ListMode.WithNo, true, "ordinal");
MaterialNameList = TempCombo.Model;
TempCombo.Destroy ();
TempCombo = new ComboBox();
ComboWorks.ComboFillReference(TempCombo, "facing", ComboWorks.ListMode.WithNo, true, "ordinal");
FacingNameList = TempCombo.Model;
TempCombo.Destroy ();
ComponentsStore = new TreeStore(
typeof(long), //row_id
typeof(Nomenclature.NomType), //nomenclature_type
typeof(int), //nomenclature_id
typeof(string), //nomenclature
typeof(string), //nomenclature_title
typeof(string), //nomenclature_description
typeof(int), //count
typeof(int), //material_id
typeof(string), //material
typeof(int), //facing_id
typeof(string), //facing
typeof(string), //comment
typeof(string), //price
typeof(string), //price_total
typeof(bool), //editable_count
typeof(bool), //editable_price
typeof(bool), //editable_material
typeof(bool), //editable_facing
typeof(bool), //editable_comment
typeof(bool), //editable_discount
typeof(int), //discount
typeof(bool)); //editable_name
BasisIter = ComponentsStore.AppendValues (
(long)-1,
Enum.Parse(typeof(Nomenclature.NomType), "construct"),
1,
null,
"Каркас",
null,
1,
-1,
"",
-1,
"",
"",
"",
"",
false,
false,
false,
false,
false,
false,
null,
false);
ServiceIter = ComponentsStore.InsertNodeAfter (BasisIter);
ComponentsStore.SetValues (
ServiceIter,
(long)-1,
Enum.Parse (typeof(Nomenclature.NomType), "other"),
1,
null,
"Услуги",
"Кликните правой кнопкой мышы для добавления услуги",
0,
-1,
"",
-1,
"",
"",
"",
"",
false,
false,
false,
false,
false,
false,
null,
false);
ColumnCount = new Gtk.TreeViewColumn ();
ColumnCount.Title = "Кол-во";
Gtk.CellRendererText CellCount = new CellRendererText ();
CellCount.Editable = true;
CellCount.Edited += OnCountEdited;
ColumnCount.PackStart (CellCount, true);
//.........这里部分代码省略.........