Пример #1
0
        private void fab_OnClick(object sender, EventArgs e)
        {
            var wizard = new WorkplaceWizard();

            wizard.EditMode = EnumHelper.EditMode.Add;
            wizard.ShowDialog();
        }
Пример #2
0
 private void ShowItem()
 {
     if (lvList.SelectedItem != null)
     {
         Guid id = Guid.Empty;
         if (Guid.TryParse(lvList.SelectedItem.SubItems[2].Text, out id))
         {
             WorkplaceWizard wizWorkplace = new WorkplaceWizard();
             wizWorkplace.EditMode    = EnumHelper.EditMode.Edit;
             wizWorkplace.WorkplaceId = id;
             wizWorkplace.Closed     += (sender, e) =>
             {
                 BindList();
             };
             wizWorkplace.ShowDialog();
         }
     }
 }