Пример #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (isInddStarted)
     {
         InDesignController.stop();
         isInddStarted   = false;
         button2.Enabled = false;
         button1.Enabled = true;
     }
 }
Пример #2
0
        private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            InDesignController.stop();
            this.notifyIcon1.Visible = false;

            Application.Exit();
            Process[] pary = Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName);
            foreach (Process p in pary)
            {
                p.Kill();
            }
        }
Пример #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            bool isIndd = true;

            if (isInddStarted && isIndd)
            {
                showStatus("Stopping converter...", StatusColor.normal);
                InDesignController.stop();
                isInddStarted   = false;
                button2.Enabled = false;
                button1.Enabled = true;
                showStatus("Converter stopped.", StatusColor.normal);
            }
        }
Пример #4
0
        private void button2_Click(object sender, EventArgs e)
        {
            bool isIndd        = checkBox1.Checked;
            bool isIllustrator = checkBox2.Checked;

            if (isInddStarted && isIndd)
            {
                InDesignController.stop();
                isInddStarted            = false;
                this.checkBox1.ForeColor = System.Drawing.Color.OrangeRed;
                button2.Enabled          = false;
                button1.Enabled          = true;
            }

            if (isIllustratorStarted && isIllustrator)
            {
                IllustratorController.stop();
                isIllustratorStarted     = false;
                this.checkBox2.ForeColor = System.Drawing.Color.OrangeRed;
                button2.Enabled          = false;
                button1.Enabled          = true;
            }
        }