Example #1
0
 private void OnModelChangeClick(object sender, EventArgs args)
 {
     Documento.getInstance().ModelloRiferimento = ModelPane.ShowModelDialog(Documento.getInstance().ModelloRiferimento) ?? Documento.getInstance().ModelloRiferimento;
     _mainContainer.RightPanel.Controls.Clear();
     foreach (ToolStripItem item in _mainContainer.SaveItems)
     {
         item.Enabled = false;
     }
 }
Example #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Modello modello = ModelPane.ShowModelDialog();

            if (null == modello)
            {
                Environment.Exit(1);
            }

            Documento.getInstance().ModelloRiferimento = modello;

            MainForm form = new MainForm();
            MainContainerPresenter presenter = new MainContainerPresenter(form.MainContainer);

            Application.Run(form);
        }