コード例 #1
0
        private void cmdDelResin_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show(this, "Are you sure you want to delete this Resin Profile?", "Confirm Delete", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            string res = m_config.RemoveSelectedInk();

            if (res != "OK")
            {
                string[] strs = res.Split('|');
                MessageBox.Show(strs[0], strs.Length > 1 ? strs[1] : "Error");
            }
            UpdateResinList();
            SetResinValues();
        }
コード例 #2
0
        private void cmdDelResin_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show(this, ((DesignMode) ? "AreYouSureYouWantToDeleteThisResinProfile" :UVDLPApp.Instance().resman.GetString("AreYouSureYouWantToDeleteThisResinProfile", UVDLPApp.Instance().cul)), ((DesignMode) ? "ConfirmDelete" :UVDLPApp.Instance().resman.GetString("ConfirmDelete", UVDLPApp.Instance().cul)), MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            string res = m_config.RemoveSelectedInk();

            if (res != "OK")
            {
                string[] strs = res.Split('|');
                MessageBox.Show(strs[0], strs.Length > 1 ? strs[1] : ((DesignMode) ? "Error" :UVDLPApp.Instance().resman.GetString("Error", UVDLPApp.Instance().cul)));
            }
            UpdateResinList();
            SetResinValues();
        }