Пример #1
0
 private void ButtonSaveClick(object sender, EventArgs e)
 {
     PhraseSettings();
     _mainWindow.SetVals();
     _mainWindow.SaveFile(string.Empty);
     _mainWindow.MinimizeMemory();
 }
Пример #2
0
        private void ButtonSaveClick(object sender, EventArgs e)
        {
            int.TryParse(textBoxX1.Text, out _tempTransfer);
            _mainWindow.X1 = _tempTransfer;
            int.TryParse(textBoxY1.Text, out _tempTransfer);
            _mainWindow.Y1 = _tempTransfer;
            int.TryParse(textBoxR1.Text, out _tempTransfer);
            _mainWindow.R1 = _tempTransfer;
            _mainWindow.C1 = colourBox1.Color;

            int.TryParse(textBoxX2.Text, out _tempTransfer);
            _mainWindow.X2 = _tempTransfer;
            int.TryParse(textBoxY2.Text, out _tempTransfer);
            _mainWindow.Y2 = _tempTransfer;
            int.TryParse(textBoxR2.Text, out _tempTransfer);
            _mainWindow.R2 = _tempTransfer;
            _mainWindow.C2 = colourBox2.Color;

            int.TryParse(textBoxX3.Text, out _tempTransfer);
            _mainWindow.X3 = _tempTransfer;
            int.TryParse(textBoxY3.Text, out _tempTransfer);
            _mainWindow.Y3 = _tempTransfer;
            int.TryParse(textBoxR3.Text, out _tempTransfer);
            _mainWindow.R3 = _tempTransfer;
            _mainWindow.C3 = colourBox3.Color;

            int.TryParse(textBoxX4.Text, out _tempTransfer);
            _mainWindow.X4 = _tempTransfer;
            int.TryParse(textBoxY4.Text, out _tempTransfer);
            _mainWindow.Y4 = _tempTransfer;
            int.TryParse(textBoxR4.Text, out _tempTransfer);
            _mainWindow.R4 = _tempTransfer;
            _mainWindow.C4 = colourBox4.Color;

            _mainWindow.Background = colorComboBoxBgnd.Color;
            _mainWindow.Shape      = comboBoxShape.SelectedIndex;
            int.TryParse(textBoxWindowX.Text, out _tempTransfer);
            _mainWindow.WX = _tempTransfer;
            int.TryParse(textBoxWindowY.Text, out _tempTransfer);
            _mainWindow.WY          = _tempTransfer;
            _mainWindow.FirstRun    = checkBoxFirstRun.Checked;
            _mainWindow.TaskbarTime = checkBoxTaskbarTime.Checked;

            _mainWindow.SetVals();
            _mainWindow.SaveFile(string.Empty);
            _mainWindow.MinimizeMemory();
        }