Esempio n. 1
0
        private void btCreateStartUp_Click(object sender, EventArgs e)
        {
            if (appReady == true)
            {
                LinkMaster myLink         = new LinkMaster();
                string     lnkStartupPath = myLink.CreatLink(appName, appDelayTime, appLocationName);

                ////message Box
                //if (MessageBox.Show("The DelayTimer has been added, Would you like run the App", "Do you want to test Delaytimer", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
                //{
                //    //if click yes Run app
                //    Process.Start(lnkStartupPath);
                //}
                ////close app
                this.Close();
            }
            else
            {
                //do nothing
            }
        }
        private void btCreateStartUp_Click(object sender, EventArgs e)
        {
            if (appReady == true)
            {

                LinkMaster myLink = new LinkMaster();
                string lnkStartupPath = myLink.CreatLink(appName, appDelayTime, appLocationName);

                ////message Box
                //if (MessageBox.Show("The DelayTimer has been added, Would you like run the App", "Do you want to test Delaytimer", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
                //{
                //    //if click yes Run app
                //    Process.Start(lnkStartupPath);
                //}
                ////close app
                this.Close();
            }
            else
            {
                //do nothing
            }
        }