예제 #1
0
        private void xCrossWindow_FormClosing(object sender, FormClosingEventArgs e)
        {
            FormProperty formProperty = FStatic.GetForm(Forms.xCrossWindow);

            formProperty.Bounds       = this.Bounds;
            formProperty.menu.Checked = false;
        }
예제 #2
0
        private void FunctionsItemsForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            FormProperty formProperty = FStatic.GetForm(Forms.FunctionList);

            formProperty.Bounds       = this.Bounds;
            formProperty.menu.Checked = false;
        }
예제 #3
0
        private void KeyBoardFormControl_FormClosing(object sender, FormClosingEventArgs e)
        {
            FormProperty formProperty = FStatic.GetForm(Forms.KeyBoard);

            formProperty.Bounds       = this.Bounds;
            formProperty.menu.Checked = false;
        }
예제 #4
0
        private void ParameterGreatScreen_FormClosing(object sender, FormClosingEventArgs e)
        {
            FormProperty formProperty = FStatic.GetForm(Forms.ParameterWindow);

            formProperty.Bounds       = this.Bounds;
            formProperty.menu.Checked = false;
        }
예제 #5
0
        private void addButton_Click(object sender, EventArgs e)
        {
            Function newFunction = new Function(mainInput.Text);

            if (newFunction.itsOk)
            {
                FStatic.Add(newFunction);
                this.Close();
            }
        }
예제 #6
0
        public KeyBoardFormControl(Main main)
        {
            InitializeComponent();

            _IFstatic = main;

            FormProperty formProperty = FStatic.GetForm(Forms.KeyBoard);

            this.Bounds = formProperty.Bounds;
        }
예제 #7
0
        public ParameterGreatScreen()
        {
            InitializeComponent();

            FormProperty formProperty = FStatic.GetForm(Forms.ParameterWindow);

            this.Bounds = formProperty.Bounds;

            moveLists = false;

            DoRefresh();
        }
예제 #8
0
        public xCrossWindow(Main main)
        {
            InitializeComponent();

            _IRefresh = main;

            FormProperty formProperty = FStatic.GetForm(Forms.xCrossWindow);

            this.Bounds = formProperty.Bounds;

            AdjustSizes();
        }
예제 #9
0
        public FunctionsItemsForm(Main main)
        {
            InitializeComponent();

            _IRefresh = main;

            FormProperty formProperty = FStatic.GetForm(Forms.FunctionList);

            this.Bounds = formProperty.Bounds;

            LoadItems();
            AdjustListColumnsSize();
        }
예제 #10
0
        public ValueOfX()
        {
            InitializeComponent();

            foreach (Function f in FStatic.Functions)
            {
                mainComboBox.Items.Add(f.Text);
            }

            Function f1 = FStatic.FirstSelectedFunction();

            if (f1 != null)
            {
                mainComboBox.SelectedItem = f1.Text;
            }
        }
예제 #11
0
        private void calculateButton_Click(object sender, EventArgs e)
        {
            Function node = FStatic.GetFunction(mainComboBox.SelectedIndex);

            if (node != null)
            {
                yText.Text = "";

                if (xText.Text == "")
                {
                    MessageBox.Show("You didn't write in any value of x!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
                else
                {
                    try
                    {
                        double x = Convert.ToDouble(xText.Text);
                        double y = node.Y(x);

                        NumberFormatInfo provider = new NumberFormatInfo();
                        provider.NaNSymbol             = "-";
                        provider.CurrencyDecimalDigits = 6;

                        yText.Text = Convert.ToString(y, provider);
                    }
                    catch
                    {
                        MessageBox.Show("x = ???!!!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                }
            }
            else
            {
                MessageBox.Show("No function is selected!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
예제 #12
0
        public AddFunctionForm()
        {
            InitializeComponent();

            label1.Text = FStatic.NextName() + " : y =";
        }
예제 #13
0
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FStatic.AddFunction_Form();
     DoRefresh(RefreshMode.FunctionList);
 }
예제 #14
0
 private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FStatic.RemoveSelectedFunctions();
     DoRefresh(RefreshMode.FunctionList);
 }
예제 #15
0
 private void colorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FStatic.ColorDialogOpen();
     DoRefresh(RefreshMode.Color);
 }
예제 #16
0
 private void settingsButton_Click(object sender, EventArgs e)
 {
     FStatic.FunctionSettings_Form();
     DoRefresh(RefreshMode.FunctionList);
 }
예제 #17
0
 private void selectAllToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FStatic.SelectAll();
     DoRefresh(RefreshMode.Select);
 }