コード例 #1
0
        private void btnSaveWindow_Click(object sender, EventArgs e)
        {
            var width  = Convert.ToInt32(txtWindowX.Text);
            var height = Convert.ToInt32(txtWindowY.Text);

            if (rdoStartMax.Checked)
            {
                Launcher.SaveWindowSettings(0, width, height, 1);
            }
            else if (rdoCustomSize.Checked)
            {
                Launcher.SaveWindowSettings(1, width, height);
            }
            else
            {
                Launcher.SaveWindowSettings(0, width, height);
            }
            MessageBox.Show("Window Settings Successfully Saved");
        }