Example #1
0
        //Open options form and grabs the options object to write to file. Also changes toolStrip1 visibility if changed
        private void msbOptions_Click(object sender, EventArgs e)
        {
            frmOptions optionsForm = new frmOptions();

            optionsForm.StartPosition = FormStartPosition.CenterParent;
            Options newOp = optionsForm.GetNewOptions();

            if (newOp != null)
            {
                if (newOp.ShowToolbar == "True")
                {
                    this.toolStrip1.Visible = true;
                }
                else
                {
                    this.toolStrip1.Visible = false;
                }
                options.Add(newOp);
                OptionsDB.SaveOptions(options);
            }
        }