本文整理汇总了C#中Reference.Destroy方法的典型用法代码示例。如果您正苦于以下问题:C# Reference.Destroy方法的具体用法?C# Reference.Destroy怎么用?C# Reference.Destroy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Reference
的用法示例。
在下文中一共展示了Reference.Destroy方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnAction2Activated
protected void OnAction2Activated(object sender, EventArgs e)
{
Reference winref = new Reference();
winref.SetMode(false,false,true,true,true);
winref.FillList("doc_types","Тип документа", "Типы документов");
winref.Show();
winref.Run();
winref.Destroy();
}
示例2: OnButtonMarkEditClicked
protected void OnButtonMarkEditClicked(object sender, EventArgs e)
{
Reference MarkSelect = new Reference();
MarkSelect.SetMode(true,true,true,true,false);
MarkSelect.FillList("marks","Марка автомобиля", "Марки автомобилей");
MarkSelect.Show();
int result = MarkSelect.Run();
if((ResponseType)result == ResponseType.Ok)
{
Mark_id = MarkSelect.SelectedID;
entryMark.Text = MarkSelect.SelectedName;
}
MarkSelect.Destroy();
TestCanSave();
}
示例3: OnButtonEventLesseeEditClicked
protected virtual void OnButtonEventLesseeEditClicked(object sender, System.EventArgs e)
{
Reference LesseeSelect = new Reference();
LesseeSelect.SetMode(false,true,false,true,false);
LesseeSelect.FillList("lessees","Арендатор", "Арендаторы");
LesseeSelect.Show();
int result = LesseeSelect.Run();
if((ResponseType)result == ResponseType.Ok)
{
EventLessee_id = LesseeSelect.SelectedID;
entryEventLessee.Text = LesseeSelect.SelectedName;
entryEventLessee.TooltipText = LesseeSelect.SelectedName;
}
LesseeSelect.Destroy();
}
示例4: OnButtonLesseeEditClicked
protected void OnButtonLesseeEditClicked(object sender, EventArgs e)
{
Reference LesseeSelect = new Reference();
LesseeSelect.SetMode(false,true,true,true,false);
LesseeSelect.FillList("lessees","Арендатор", "Арендаторы");
LesseeSelect.Show();
int result = LesseeSelect.Run();
if((ResponseType)result == ResponseType.Ok)
{
LesseeId = LesseeSelect.SelectedID;
LesseeisNull = false;
entryLessee.Text = LesseeSelect.SelectedName;
entryLessee.TooltipText = LesseeSelect.SelectedName;
}
LesseeSelect.Destroy();
TestCanSave();
}
示例5: OnButtonContractorEditClicked
protected void OnButtonContractorEditClicked(object sender, EventArgs e)
{
Reference ContractorSelect = new Reference();
ContractorSelect.SetMode(true,true,true,true,false);
ContractorSelect.FillList("contractors","Контрагент", "Контрагенты");
ContractorSelect.Show();
int result = ContractorSelect.Run();
if((ResponseType)result == ResponseType.Ok)
{
Contractor_id = ContractorSelect.SelectedID;
ContractorNull = false;
//buttonContactOpen.Sensitive = true;
entryContractor.Text = ContractorSelect.SelectedName;
entryContractor.TooltipText = ContractorSelect.SelectedName;
}
ContractorSelect.Destroy();
TestCanSave ();
}
示例6: OnProvidersActionActivated
protected void OnProvidersActionActivated(object sender, EventArgs e)
{
Reference winProviders = new Reference ();
winProviders.SetMode (true, false, true, true, true);
winProviders.FillList ("service_providers", "Поставщик", "Поставщики услуг");
winProviders.Show ();
winProviders.Run ();
winProviders.Destroy ();
}
示例7: OnAction6Activated
protected virtual void OnAction6Activated(object sender, System.EventArgs e)
{
Reference winref = new Reference ();
winref.SetMode (true, false, true, true, true);
winref.FillList ("goods", "Группа товаров", "Группы товаров");
winref.Show ();
winref.Run ();
winref.Destroy ();
}
示例8: OnAction41Activated
protected void OnAction41Activated(object sender, EventArgs e)
{
Reference winref = new Reference ();
winref.SetMode (false, false, true, true, true);
winref.FillList ("meter_types", "Тип счётчика", "Типы счётчиков");
winref.Show ();
winref.Run ();
winref.Destroy ();
}
示例9: OnAction9Activated
protected void OnAction9Activated(object sender, EventArgs e)
{
Reference winref = new Reference();
winref.SetMode(true, false, true, true, true);
winref.FillList("glass", "Стекло", "Виды стёкл");
winref.Show();
winref.Run();
winref.Destroy();
}
示例10: OnAction7Activated
protected void OnAction7Activated(object sender, EventArgs e)
{
Reference winref = new Reference();
winref.SetMode(false, false, true, true, true);
winref.FillList("status", "Статус заказа", "Статусы заказа");
winref.Show();
winref.Run();
winref.Destroy();
}
示例11: OnAction6Activated
protected void OnAction6Activated(object sender, EventArgs e)
{
Reference winref = new Reference();
winref.SetMode(false, false, true, true, true);
winref.FillList("stocks", "Склад", "Склады");
winref.Show();
winref.Run();
winref.Destroy();
}
示例12: OnAction5Activated
protected void OnAction5Activated(object sender, EventArgs e)
{
Reference winref = new Reference();
winref.SetMode(true, false, true, true, true);
winref.FillList("manufacturers", "Производитель", "Производители");
winref.Show();
winref.Run();
winref.Destroy();
}
示例13: OnAction4Activated
protected void OnAction4Activated(object sender, EventArgs e)
{
Reference winref = new Reference();
winref.SetMode(false, false, true, true, true);
winref.SqlSelect = "SELECT models.id, models.name, marks.name as mark FROM @tablename " +
"LEFT JOIN marks ON marks.id = models.mark_id ORDER BY mark, name";
winref.Columns.Insert(1, new Reference.ColumnInfo("Марка", "{2}", true));
winref.Columns[2].Name = "Модель";
winref.FillList("models","Модель автомобиля", "Модели автомобилей");
winref.Show();
winref.Run();
winref.Destroy();
}
示例14: OnAction3Activated
protected void OnAction3Activated(object sender, EventArgs e)
{
Reference winref = new Reference();
winref.SetMode(true, false, true, true, true);
winref.FillList("marks","Марка автомобиля", "Марки автомобилей");
winref.Show();
winref.Run();
winref.Destroy();
}
示例15: OnAction10Activated
protected void OnAction10Activated(object sender, EventArgs e)
{
Reference winref = new Reference();
winref.SetMode(false, false, true, true, true);
winref.OrdinalField = "ordinal";
winref.SqlSelect += " ORDER BY ordinal";
winref.FillList("services", "Вид работы", "Виды работ");
winref.Show();
winref.Run();
winref.Destroy();
}