示例#1
0
 public ScriptEditForm(DesignForm mainForm)
     : base(mainForm)
 {
     this.InitializeComponent();
     this.ShowHint  = DockState.Document;
     this.DockAreas = DockAreas.Document;
 }
示例#2
0
        /// <summary>
        /// Overloaded Constructor
        /// </summary>
        /// <param name="_name">Name of <see cref="KO_GUI"/></param>
        /// <param name="_id">ID of the <see cref="KO_GUI"/></param>
        public KO_GUI(string _name, int _id)
        {
            Name_GUI = _name;

            ID_GUI = _id;

            KO_CV_FL_GUI = new KO_CornverVariables(VehicleCorner.FrontLeft);

            KO_CV_FR_GUI = new KO_CornverVariables(VehicleCorner.FrontRight);

            KO_CV_RL_GUI = new KO_CornverVariables(VehicleCorner.RearLeft);

            KO_CV_RR_GUI = new KO_CornverVariables(VehicleCorner.RearRight);

            KO_Central = new KO_CentralVariables();

            KO_SimParams = new KO_SimulationParams();

            //xuc_KO = new XUC_KinematicOptimization();

            //Param_Imp_Form = new ParametersAndImportance();

            Design_Form = new DesignForm();

            Design_Form.Set_KO_Variables(ref KO_Central, ref KO_CV_FL_GUI, ref KO_CV_FR_GUI, ref KO_CV_RL_GUI, ref KO_CV_RR_GUI);

            Design_Form.Set_KO_SimulationParams(ref KO_SimParams);

            /////<summary>Passing the <see cref="KO_CornverVariables"/> Objects of the 4 corners to the <see cref="Param_Imp_Form"/></summary>
            //Param_Imp_Form.SetCornerVariables(KO_CV_FL_GUI, KO_CV_FR_GUI, KO_CV_RL_GUI, KO_CV_RR_GUI);
        }
示例#3
0
        public override void btncancel_Click(object sender, EventArgs e)
        {
            add_edit = false;
            c.GetMdiParent(this).EnableAllEditMenuButtons();

            DesignForm.fromDesign1(this);
        }
示例#4
0
 private void btnedit_Click(object sender, EventArgs e)
 {
     add_edit = false;
     c.btndisable(btnnew, btnedit, btndelete, btnsave, btncancel, btnprint, btnexit);
     txtbookname.Focus();
     DesignForm.fromDesign2(this);
 }
示例#5
0
        private void FrmHostalFee_Load(object sender, EventArgs e)
        {
            c.getconnstr();
            c.GetMdiParent(this).EnableAllEditMenuButtons();

            DesignForm.fromDesign1(this);
        }
示例#6
0
        private void designButton_Click(object sender, EventArgs e)
        {
            DesignForm lf = new DesignForm(ledDisplay1);

            lf.ShowDialog();
            lf.Dispose();
        }
示例#7
0
 public override void btnedit_Click(object sender, EventArgs e)
 {
     add_edit = false;
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     ATxtScholar.Focus();
     DesignForm.fromDesign1(this);
 }
示例#8
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="_koCV">Object of the <see cref="KO_CornverVariables"/> Class</param>
        /// <param name="_vCorner">Corner of the Vehicle which is being computed</param>
        /// <param name="_vehicle">The <see cref="Vehicle"/> item itself</param>
        public KO_Solver(ref KO_CornverVariables _koCV, ref KO_CentralVariables _koCentral, ref KO_SimulationParams _simpParams, VehicleCorner _vCorner, ref DesignForm _designForm, OptimizaionParameter _optParam)
        {
            KO_CV = _koCV;

            VCorner = _vCorner;

            KO_Central = _koCentral;

            SimParams = _simpParams;

            Design_Form = _designForm;

            optParam = _optParam;

            if (optParam == OptimizaionParameter.BumpSteer)
            {
                Initialize_Optimizer_BS();
            }
            else if (optParam == OptimizaionParameter.SpringMotionRatio)
            {
                Initialize_Optimizer_ActuationPoints_RockerPoints();
            }
            else if (optParam == OptimizaionParameter.ARBMotionRatio)
            {
            }
        }
示例#9
0
        private void button9_Click(object sender, EventArgs e)
        {
            this.Hide();
            var x = new DesignForm();

            x.Show();
        }
示例#10
0
 public ReportTreeForm(DesignForm mainForm)
     : base(mainForm)
 {
     this.HideOnClose = true;
     this.ShowHint    = DockState.DockRight;
     this.DockAreas   = DockAreas.DockLeft | DockAreas.DockRight
                        | DockAreas.DockTop | DockAreas.DockBottom;
 }
示例#11
0
 private void FrmCashPyt_Load(object sender, EventArgs e)
 {
     c.GetMdiParent(this).EnableAllEditMenuButtons();
     c.getconnstr();
     c.FillcomboBox("select * from tbl_account where actype not in (dbo.GetAccountCode('C')) order by acname", "acname", "accode", ref valcmbaccountgroup);
     txtsession.Text = Convert.ToString(school.CurrentSessionCode);
     DesignForm.fromDesign1(this);
 }
示例#12
0
 internal PropertyEditForm(DesignForm mainForm)
     : base(mainForm)
 {
     this.HideOnClose = true;
     this.ShowHint    = DockState.DockRight;
     this.DockAreas   = DockAreas.DockLeft | DockAreas.DockRight
                        | DockAreas.DockTop | DockAreas.DockBottom;
 }
示例#13
0
 public ControlDesign()
 {
     InitializeComponent();
     using (DesignForm form = new DesignForm())
     {
         this.BackColor = form.BackColor;
     }
 }
示例#14
0
        private void FrmAccountType_Load(object sender, EventArgs e)
        {
            c.GetMdiParent(this).EnableAllEditMenuButtons();
            c.getconnstr();

            c.FillListBox("select * from tbl_actype", "acdesc", "actype", ref listBox1);
            DesignForm.fromDesign1(this);
        }
示例#15
0
        private void FrmBusDeails_Load(object sender, EventArgs e)
        {
            showGrid();
            dgv1.Enabled = false;
            c.GetMdiParent(this).EnableAllEditMenuButtons();

            DesignForm.fromDesign1(this);
        }
示例#16
0
        private void FrmHostal_Load(object sender, EventArgs e)
        {
            c.GetMdiParent(this).EnableAllEditMenuButtons();
            c.getconnstr();

            c.FillListBox("select * from tbl_hostel", "hostelname", "hostelcode", ref listBox1);
            DesignForm.fromDesign1(this);
        }
示例#17
0
 public override void btnedit_Click(object sender, EventArgs e)
 {
     add_edit = false;
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     txtvoucherno.ReadOnly = false;
     txtvoucherno.Focus();
     DesignForm.fromDesign2(this);
 }
示例#18
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     add_edit = true;
     c.cleartext(this);
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     ATxtScholar.Focus();
     cmbmonth.SelectedIndex = 0;
     DesignForm.fromDesign2(this);
 }
示例#19
0
 public FindReplaceForm(DesignForm mainForm)
     : base(mainForm)
 {
     this.InitializeComponent();
     this.HideOnClose = true;
     this.ShowHint    = DockState.Float;
     this.DockAreas   = DockAreas.DockLeft | DockAreas.DockRight
                        | DockAreas.DockTop | DockAreas.DockBottom | DockAreas.Float;
 }
示例#20
0
        public DesignEditForm(DesignForm mainForm)
            : base(mainForm)
        {
            this.InitializeComponent();

            this.ShowHint  = DockState.Document;
            this.DockAreas = DockAreas.Document;
            this.toolcboZoom.SelectedIndex = 11;
        }
示例#21
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     DesignForm.fromDesign2(this);
     add_edit = true;
     c.cleartext(this);
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     txtclassname.Focus();
     DesignForm.fromDesign2(this);
 }
示例#22
0
 public override void btnedit_Click(object sender, EventArgs e)
 {
     add_edit = false;
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     DesignForm.fromDesign2(this);
     dgv1.Focus();
     dgv1.Enabled = true;
     c.GetMdiParent(this).ToggleDeleteButton(true);
 }
示例#23
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     add_edit = true;
     c.cleartext(this);
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     dtgbook.Rows.Clear();
     dtp.Focus();
     DesignForm.fromDesign2(this);
     txtvoucherno.Enabled = false;
 }
示例#24
0
 private void FrmBook_Load(object sender, EventArgs e)
 {
     c.btnenable(btnnew, btnedit, btndelete, btnsave, btncancel, btnprint, btnexit);
     c.getconnstr();
     c.FillcomboBox("select * from tbl_publisher order by publishar", "publishar", "publishcode", ref valcmbpublisher);
     c.FillcomboBox("select * from tbl_subject order by subjectname", "subjectname", "subjectno", ref valcmbsubject);
     c.FillListBox("select * from tbl_book", "bookname", "bookno", ref listBox1);
     btnnew.Focus();
     DesignForm.fromDesign1(this);
 }
示例#25
0
 public override void btnedit_Click(object sender, EventArgs e)
 {
     DesignForm.fromDesign2(this);
     add_edit = false;
     c.GetMdiParent(this).DisableAllEditMenuButtons();
     listBox1.Focus();
     c.GetMdiParent(this).ToggleDeleteButton(true);
     BtnSearch.Visible = true;
     DesignForm.fromDesign2(this);
 }
示例#26
0
        private void FrmAccount_Load(object sender, EventArgs e)
        {
            c.GetMdiParent(this).EnableAllEditMenuButtons();
            c.getconnstr();
            c.FillcomboBox("select * from tbl_actype order by acdesc", "acdesc", "actype", ref valcmbaccountgroup);
            c.FillListBox("select * from tbl_account", "acname", "accode", ref listBox1);
            c.FillcomboBox("select * from tbl_account", "acname", "accode", ref valcmbparent);

            BtnSearch.Visible = false;
            DesignForm.fromDesign1(this);
        }
示例#27
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     try
     {
         add_edit = true;
         c.cleartext(this);
         c.GetMdiParent(this).DisableAllEditMenuButtons();
         DesignForm.fromDesign2(this);
     }
     catch (Exception ex) { MessageBox.Show(ex.Message); }
 }
示例#28
0
 public override void btncancel_Click(object sender, EventArgs e)
 {
     add_edit = false;
     c.GetMdiParent(this).EnableAllEditMenuButtons();
     dtgbook.Rows.Clear();
     for (int i = 0; i <= 25; i++)
     {
         dtgbook.Rows.Add();
     }
     DesignForm.fromDesign1(this);
 }
示例#29
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     try
     {
         add_edit = true;
         c.GetMdiParent(this).DisableAllEditMenuButtons();
         txtaccountgroup.Focus();
         c.cleartext(this);
         DesignForm.fromDesign2(this);
     }
     catch { }
 }
示例#30
0
 public override void btnnew_Click(object sender, EventArgs e)
 {
     try
     {
         add_edit = true;
         txtRTONo.Focus();
         c.cleartext(this);
         getId();
         c.GetMdiParent(this).DisableAllEditMenuButtons();
         DesignForm.fromDesign2(this);
         txtBusNo.Enabled = false;
         txtRTONo.Focus();
     }
     catch { }
 }