Exemple #1
0
 public void Execute()
 {
     using (var formAbout = new FormAbout())
     {
         formAbout.ShowDialog();
     }
 }
 public void ShowAbout()
 {
     using (FormAbout view = new FormAbout())
     {
         view.ShowDialog();
     }
 }
Exemple #3
0
 private void 关于ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (FormAbout formAbout = new FormAbout())
     {
         formAbout.ShowDialog();
     }
 }
Exemple #4
0
        private void itemAboutProgram_Click(object sender, EventArgs e)
        {
            FormAbout form = new FormAbout();

            form.MdiParent = this;
            form.Show();
        }
Exemple #5
0
 /// <summary>
 /// Executes this instance.
 /// </summary>
 public override void Execute()
 {
     using (var about = new FormAbout())
     {
         about.ShowDialog();
     }
 }
        //-------------------------------------------------------------------------------
        private void m_btnAbout_Click(object sender, EventArgs e)
        {
            AssemblyAttributeAccessors aaa = new AssemblyAttributeAccessors(this);
            string        stringTitle      = aaa.AssemblyTitle;
            FormAboutData formAboutData    = new FormAboutData(
                this,
                new Copyright[] { new Copyright(this, res.Resources.SpringAvestanEditorLogo) },
                new Credits[] { new Credits(stringTitle,
                                            new Credit[] {
                    new Credit(
                        "ArdeshirV",
                        @"ArdeshirV is 'Spring Avestan Editor' founder and developer.
Spring Avestan Editor: https://ardeshirv.github.io/SpringAvestanEditor/
Github: https://github.com/ArdeshirV/SpringAvestanEditor
Email: [email protected]",
                        af.Resources.ArdeshirV)
                }) },
                new Forms.License[] {
                new Forms.License(stringTitle, res.Resources.LICENSE, res.Resources.GPLv3)
            },
                new Donations[] {
                new Donations(stringTitle, DefaultDonationList.Items)
            },
                m_strLink,
                m_strSupportMail);

            FormAbout.Show(formAboutData);
        }
 private void btnAbout_Click(object sender, EventArgs e)
 {
     if (about == null || !about.IsHandleCreated)
         about = new FormAbout();
     about.Show();
     this.Hide();
 }
Exemple #8
0
 /// <summary>
 /// Обработчик события выбора п. главного меню "Помощь-О программе"
 /// </summary>
 /// <param name="obj">Объект, инициировавший событие</param>
 /// <param name="ev">Аргумент события</param>
 private void fMenuItemAbout_Click(object obj, EventArgs ev)
 {
     using (FormAbout formAbout = new FormAbout(this.Icon.ToBitmap() as Image))
     {
         formAbout.ShowDialog(this);
     }
 }
        private void barButtonItemAbout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            // 关于
            FormAbout dlg = new FormAbout();

            dlg.ShowDialog();
        }
Exemple #10
0
        private void 关于本软件ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormAbout fa = new FormAbout(Resource.StringResouce.SoftName,
                                         UserClient.CurrentVersion, 2017, Resource.StringResouce.SoftCopyRight);

            fa.ShowDialog();
            fa.Dispose();
        }
Exemple #11
0
        protected override void OnClick()
        {
            FormAbout formAbout = new FormAbout();

            formAbout.ShowDialog();

            ArcMap.Application.CurrentTool = null;
        }
Exemple #12
0
 private void MenuItem关于本软件_Click(object sender, RoutedEventArgs e)
 {
     using (FormAbout fa = new FormAbout(Resource.StringResouce.SoftName,
                                         UserClient.CurrentVersion, 2017, Resource.StringResouce.SoftCopyRight))
     {
         fa.ShowDialog();
     }
 }
 private void 关于本软件ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (FormAbout fa = new FormAbout(SoftResources.StringResouce.SoftName,
                                         UserClient.CurrentVersion, 2017, SoftResources.StringResouce.SoftCopyRight))
     {
         fa.ShowDialog();
     }
 }
Exemple #14
0
 private void 关于软件ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (FormAbout fm = new FormAbout(
                Resource.StringResouce.SoftName, UserServer.ServerSettings.SystemVersion,
                2017, Resource.StringResouce.SoftCopyRight))
     {
         fm.ShowDialog();
     }
 }
Exemple #15
0
 public void OpenAbout()
 {
     if (currentFormAbout != null)
     {
         currentFormAbout.BringToFront();
     }
     else
     {
         currentFormAbout             = new FormAbout();
         currentFormAbout.FormClosed += (sender, args) => currentFormAbout = null;
         ShowChildForm(currentFormAbout);
     }
 }
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            formOrder       = new FormOrder();
            formSelect      = new FormSelect();
            formProductInfo = new FormProductInfo();
            formStart       = new FormStart();
            formAbout       = new FormAbout();
            formSplash      = new FormSplash();
            product         = new Product();
            Application.Run(formSplash);
        }
Exemple #17
0
 void About(object sender, EventArgs e)
 {
     if (!_aboutActive)
     {
         using (FormAbout fAbout = new FormAbout()) {
             _aboutActive = true;
             if (AppSettings.lockSettings)
             {
                 fAbout.DonateHidden = true;
             }
             fAbout.ShowDialog();
             _aboutActive = false;
         };
     }
 }
Exemple #18
0
 private void TsmiClick(object sender, EventArgs e)
 {
     if (sender.Equals(tsmiExit))
     {
         Application.Exit();
     }
     else if (sender.Equals(tsmiAbout))
     {
         FormAbout aboutForm = new FormAbout();
         aboutForm.ShowDialog();
         aboutForm.Dispose();
     }
     else if (sender.Equals(TsmiSettings))
     {
         FormOptions settingsForm = new FormOptions();
         settingsForm.ShowDialog();
         settingsForm.Dispose();
     }
 }
Exemple #19
0
        private void оПрограммеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormAbout formAbout = new FormAbout();

            formAbout.ShowDialog();
        }
Exemple #20
0
        private void mnItemAbout_Click(object sender, EventArgs e)
        {
            FormAbout about = new FormAbout();

            about.ShowDialog(this);
        }
 private void button1_Click(object sender, EventArgs e)
 {
     FormAbout aboutDialog = new FormAbout();
     aboutDialog.Visible = true;
 }
Exemple #22
0
        /// <summary>
        /// 關於按鍵按下事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void TsbtnAbout_MouseUp(object sender, MouseEventArgs e)
        {
            FormAbout About = new FormAbout();

            About.ShowDialog();
        }
Exemple #23
0
 private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (FormAbout form = new FormAbout(Properties.Resources.misc_AboutScreen_800))
         form.ShowDialog(this);
 }
Exemple #24
0
        public MainForm()
        {
            // we want all key events to pass first on main window, so we can jog
            // regardless of selected sub control
            KeyPreview = true;

            InitializeComponent();
            InitializeGlControl();
            Global.SettingsPath  = Assembly.GetEntryAssembly().Location;
            Global.ToolTableFile = Utils.SettingPath("ToolTable.gtt");

            toolTable        = new ToolTable();
            Global.toolTable = toolTable;
            toolTable.Load(Global.ToolTableFile);

            Global.mdiControl                    = mdiCtrl;
            toolStrip1.Renderer                  = new ToolButton();
            ginterp                              = new GcodeInterp();
            Global.ginterp                       = ginterp;
            visualizerWinMain.ginterp            = ginterp;
            visualizerWinMain.NewGcodeLoaded    += visualizerWinMain_NewGcodeLoaded;
            gcodeMainViewer.SelectedLineChanged += gcodeMainViewer_SelectedLineChanged;
            simTimer                             = new Timer();
            simTimer.Interval                    = 40;
            simTimer.Tick                       += simTimer_Tick;
            // grbl communication
            grblComm = new GrblComm();
            grblComm.CommStatusChanged += grblComm_StatusChanged;
            grblComm.LineReceived      += grblComm_LineReceived;
            grblComm.StatusUpdate      += grblComm_StatusUpdate;
            grblComm.ParameterUpdate   += grblComm_ParameterUpdate;
            grblComm.MessageReceived   += grblComm_MessageReceived;
            grblComm.ChangeToolNotify  += grblComm_ChangeToolNotify;
            grblComm.GrblStatusChanged += grblComm_GrblStatusChanged;
            Global.grblComm             = grblComm;
            grblScanTimer          = new Timer();
            grblScanTimer.Interval = 100;
            grblScanTimer.Tick    += grblScanTimer_Tick;
            grblScanTimer.Start();

            // grbl manual controll
            manualControl.AxisStepJogPressed      += manualControl_AxisStepJogPressed;
            manualControl.AxisContinuesJogPressed += manualControl_AxisContinuesJogPressed;
            manualControl.AxisActionPressed       += manualControl_AxisActionPressed;
            manualControl.SpindleAction           += manualControl_SpindleAction;

            grblParamEdit = new ParametersEdit();
            Global.grblParameterEditor = grblParamEdit;

            toolTableEdit        = new ToolTableEdit();
            Global.toolTableEdit = toolTableEdit;


            frmOffset       = new FormOffset();
            frmProbe        = new FormProbe();
            frmPopup        = new FormPopWindow();
            frmConfirmation = new FormConfirmation();
            frmChangeTool   = new FormChangeTool();
            frmAbout        = new FormAbout();
            Global.grblParameterEditor.SetPatrameterTemplate(Global.grblConfig.GetParamDescription());

            errDisplayHandler = new ErrorDisplayHandler(this);
        }
        //-------------------------------------------------------------------------------
        private void buttonFormAbout_Click(object sender, EventArgs e)
        {
            // AssemblyAttributeAccessors retrive all assembly data by reflection
            AssemblyAttributeAccessors aaa = new AssemblyAttributeAccessors(this);
            string stringAssemblyTitle     = aaa.AssemblyTitle;

            // TODO: You are allowed to add your donation addresses in your code like this:

            /*Donations[] donations = new Donations[] {
             *      new Donations(      // Donations belong to this component and you can specify
             *      stringAssemblyTitle,// several donation lists for several different component in your app
             *      new Donation[] {    // All below donations addresses are linked to
             *                          // the component with stringAssemblyTitle title
             *              new Donation("Bitcoin",                             // Donation name
             *                           "1MjwviitdNC7ndvjXL3dG7mE9Pir3ZBSBP",  // Donation address
             *                   ArdeshirV.Forms.Properties.Resources.Bitcoin), // Donation logo
             *              // if you use usual public cryptocurrency logos like bitcoin and etc...
             *              // then you can refer to ArdeshirV.Forms.Properties.Resources.Bitcoin image
             *              new Donation("Ethereum",  // Here another example about Ethereum
             *                           "0x1DBED0B76d1070a47613EdEE58D9eD8afD6A206D",
             *                           ArdeshirV.Forms.Properties.Resources.Ethereum)
             *      })};*/

            // Adding all my default donation addresses
            Donations[] donations = new Donations[] {
                // Below code add default donation list to donation tab of FormAbout:
                //new Donations(stringAssemblyTitle, DefaultDonationList.Items)
                // You can add your own donation address like this:
                //new Donations("Component Name", new Donation[] {
                //                  new Donation(
                //                      "Bitcoin",                       // Currency type
                //                      "1GtjrxH6t8om8KwHAHKpcG5SAwVSsm4PEi",  // Address
                //                      res.Resources.Bitcoin)  // Currency global symbol
                //              })
            };

            Credits[] credits = new Credits[] {
                new Credits(stringAssemblyTitle, new Credit[] {
                    DefaultCreditList.GetItem("ArdeshirV")
                })
                // TODO: You are allowed to add your credit info in your code like this:
                //new Credits("Component Name", new Credit[] {
                //	            new Credit("Credit Name", "Credit Description...", CreditAvator)
                //	        })
            };

            // You can add your copyright data about your different components like below code
            Copyright[] copyrights = new Copyright[] {
                new Copyright(this, Resources.Logo)                  // the first parameter is
                // one of your components and the Copyright constructor can retrive all
                // assembly data about title, version, copyright and description automatically
                // but you are still able to specify title, version, copyright and description
                // yourself with another constructor like below:
                //, new Copyright(Text, "2.0.0", "Company", "Copyleft", "Test", ImageAppLogo)
                // but I prefer the first professional constructor and I think it's better
                // to specify details about your component in your AssemblyInfo.cs file not here
                // You can use the first kind of constructor only if you set strongname with key
            };

            License[] licenses = new License[] {
                new License(stringAssemblyTitle,                  // The component name
                            Resources.LICENSE,                    // License Contents for specified component
                            Resources.GPLv3)                      // License Logo
            };

            FormAboutData data = new FormAboutData(this,
                                                   copyrights,
                                                   credits,
                                                   licenses,
                                                   donations,
                                                   _stringWebsite,
                                                   _stringEmail);

            FormAbout.Show(data);
        }
Exemple #26
0
        internal static void myMenuFunction()
        {
            var about = new FormAbout();

            about.ShowDialog();
        }
Exemple #27
0
        public override void Execute()
        {
            var aboutDialog = new FormAbout();

            aboutDialog.ShowDialog(mainForm);
        }
        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormAbout fa = new FormAbout();

            fa.ShowDialog();
        }
Exemple #29
0
        private void tSMenuItem_About_Click(object sender, EventArgs e)
        {
            FormAbout formAbout = new FormAbout();

            formAbout.ShowDialog();
        }
Exemple #30
0
        //-------------------------------------------------------------------------------
        private void buttonFormAbout_Click(object sender, EventArgs e)
        {
            // if you want to create the most beautiful "About form" you just need to
            // copy below code in this method into your app and change some words
            string stringProductName = Application.ProductName;

            // TODO: You can add your donation addresses in your code like below examples
            // You just need to replace your currency-name currency-address and logos
            Donations[] donations = new Donations[] {
                new Donations(                    // Donations belong to this component and you can specify
                    stringProductName,            // several donation lists for several different component in your app
                    new Donation[] {              // All below donations addresses are linked to
                    // the component-name with stringAssemblyTitle title
                    // That means each independent component of application can refer
                    // to a large number of donation addresses just like below:

                    // Here we specify donation predefined name and address and
                    // the prdefined image-logo to specified currency name
                    // will be found in the predefined currency name/logos
                    // To visit the full predefined list of currency logos check
                    // the GlobalResouces.CurrencyLogos.NamesList
                    DefaultDonationList.CreateDonationByDefaultLogos(
                        "Bitcoin", "1GtjrxH6t8om8KwHAHKpcG5SAwVSsm4PEi"),
                    // You can also use the below code instead of above code:
                    //   new Donation("Bitcoin", "1GtjrxH6t8om8KwHAHKpcG5SAwVSsm4PEi",
                    //                GlobalResouces.CurrencyLogos.GetItemByName("Bitcoin")),
                    // but it's too longer and more complicated but with same result.
                    // Here also the Bitcoin logo will be added to the list automatically.
                    DefaultDonationList.CreateDonationByDefaultLogos(
                        // Here we used predefined logo for Ethereum but without custom address:
                        "Ethereum", "0x6E6465394D14975956cd1BD37ab4E35F2C60300E"),
                    // Here we use default predefined Binance address
                    // and logo that belong to ArdeshirV: (You don't need to use it)
                    DefaultDonationList.GetItem("Binance"),
                    DefaultDonationList.GetItem("Tron"),
                    // We use predefined Nano logo with the specified custom address:
                    DefaultDonationList.CreateDonationByDefaultLogos(
                        "Nano", "nano_3feuiaogay8zbsfye5ob1xp7obwb4syfpmc4pcb7ctckhh5z8671q4uzm9tc"),
                    DefaultDonationList.CreateDonationByDefaultLogos(
                        "Tether", "0x6E6465394D14975956cd1BD37ab4E35F2C60300E"),
                    DefaultDonationList.GetItem("Paxos Standard"),
                    DefaultDonationList.GetItem("PAX Gold"),
                    DefaultDonationList.GetItem("Monero"),
                    DefaultDonationList.GetItem("Zcash"),
                })
            };

            Credits[] credits = new Credits[] {
                new Credits(stringProductName, new Credit[] {
                    DefaultCreditList.GetItem("ArdeshirV.Forms")
                })                              //,
                // TODO: You can add your credit info in your code like this example:
                //new Credits("Component Name", new Credit[] {
                //	            new Credit("Credit Name",
                //                         "Credit Description...",
                //                          CreditAvator)  // It's an image about your specified creadit
                //	        })
            };

            // You can add your copyright data about your different components
            // that are present in your app like below code:
            Copyright[] copyrights = new Copyright[] {
                new Copyright(this, Resources.Logo)                  // the first parameter is
                // one of your components and the Copyright constructor can retrive all
                // assembly data about title, version, copyright and description automatically
                // but you are still able to specify title, version, copyright and description
                // yourself with another constructor like below:
                //, new Copyright(Text, "2.0.0", "Company", "Copyleft", "Test", ImageAppLogo)
                // but I prefer the first professional constructor and I think it's better
                // to specify details about your component in your AssemblyInfo.cs file not here
                // You can use the first kind of constructor only if you set strongname with key
            };

            License[] licenses = new License[] {
                new License(stringProductName,                              // The component name
                            GlobalResouces.Licenses.GPLLicense,             // License Contents for specified component
                            GlobalResouces.Licenses.GPLLicenseLogo)         // License Logo
            };

            FormAboutData data = new FormAboutData(this,
                                                   copyrights,
                                                   credits,
                                                   licenses,
                                                   donations,
                                                   _stringWebsite,
                                                   _stringEmail);

            FormAbout.Show(data);
        }
 public void ShowAbout()
 {
     using (FormAbout view = new FormAbout())
     {
         view.ShowDialog();
     }
 }
Exemple #32
0
        /// <summary>
        /// 關於按鍵按下事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void TsmiAbout_Click(object sender, EventArgs e)
        {
            FormAbout About = new FormAbout();

            About.ShowDialog();
        }
Exemple #33
0
 /// <summary>
 /// Создает экземпляр класса
 /// </summary>
 public AboutBox()
 {
     _formAbout = new FormAbout();
 }