예제 #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
파일: FrmHostal.cs 프로젝트: dreamzedu/csms
        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
파일: FrmHostal.cs 프로젝트: dreamzedu/csms
 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 { }
 }