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

            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))
         {
             SupplierWizard wizSupplier = new SupplierWizard();
             wizSupplier.EditMode   = EnumHelper.EditMode.Edit;
             wizSupplier.SupplierId = id;
             wizSupplier.Closed    += new EventHandler(wizSupplier_Closed);
             wizSupplier.ShowDialog();
         }
     }
 }
Пример #3
0
        private void SaveNewMessageHandler(object sender, EventArgs e)
        {
            if (((Form)sender).DialogResult == DialogResult.Yes)
            {
                if (Save())
                {
                    if (this.SupplierId != Guid.Empty)
                    {
                        Helper.DesktopHelper.RefreshMainList <SupplierList>();
                        this.Close();

                        SupplierWizard wizard = new SupplierWizard();
                        wizard.EditMode = EnumHelper.EditMode.Add;
                        wizard.ShowDialog();
                    }
                }
            }
        }