Example #1
0
 public LostRenewForm(SnWindow parent_window)
     : this()
 {
     this.parent_window = parent_window;
     this.G             = this.parent_window.G;
     this.BackColor     = ColorResource.BACKGROUND_COLOR_BEIGE;
 }
        public UpgradeProgramForm(SnWindow parent_window)
        {
            InitializeComponent();

            this.parent_window = parent_window;
            this.G             = this.parent_window.G;
            this.form_mode     = FORM_MODE.EDIT;
        }
Example #3
0
 public DealerList(SnWindow parent_window, string dealer_code)
     : this()
 {
     this.parent_window        = parent_window;
     this.selected_dealer_code = dealer_code;
     this.sort_mode            = SORT_MODE.DEALER;
     this.FillInDatagrid();
     this.SetSelectedItem();
 }
Example #4
0
 public UpNewRwtLineForm(SnWindow parent_form, DIALOG_TYPE dialog_type)
 {
     InitializeComponent();
     this.parent_form = parent_form;
     this.G           = this.parent_form.G;
     this.dialog_type = dialog_type;
     verext           = (this.dialog_type == DIALOG_TYPE.UP_NEWRWT ? "1" : (this.dialog_type == DIALOG_TYPE.UP_NEWRWT_JOB ? "2" : this.parent_form.serial.verext));
     this.Text        = (this.dialog_type == DIALOG_TYPE.UP_NEWRWT_JOB ? "Gen 'Up New RWT + Job' line" : this.Text);
 }
Example #5
0
        public SellProgram2nd(SnWindow parent_window)
        {
            InitializeComponent();

            this.parent_window = parent_window;
            this.G             = this.parent_window.G;

            this.getDealer();
        }
Example #6
0
        public GenerateSNForm(SnWindow parent_window)
        {
            InitializeComponent();
            this.parent_window = parent_window;
            this.G             = this.parent_window.G;
            this.BackColor     = ColorResource.BACKGROUND_COLOR_BEIGE;
            //this.chkCDTraining.CheckState = CheckState.Checked;

            this.mskSernum.Enter  += new EventHandler(this.onControlEnterHandler);
            this.numQty.Enter     += new EventHandler(this.onControlEnterHandler);
            this.txtVersion.Enter += new EventHandler(this.onControlEnterHandler);
            this.txtDealer.Enter  += new EventHandler(this.onControlEnterHandler);

            this.txtVersion.Leave += new EventHandler(this.onControlLeaveHandler);
            this.numQty.Leave     += new EventHandler(this.onControlLeaveHandler);
            this.mskSernum.Leave  += new EventHandler(this.onControlLeaveHandler);
            this.txtDealer.Leave  += new EventHandler(this.onControlLeaveHandler);

            this.mskSernum.GotFocus     += new EventHandler(this.onControlFocusedHandler);
            this.numQty.GotFocus        += new EventHandler(this.onControlFocusedHandler);
            this.txtVersion.GotFocus    += new EventHandler(this.onControlFocusedHandler);
            this.txtDealer.GotFocus     += new EventHandler(this.onControlFocusedHandler);
            this.chkCDTraining.GotFocus += new EventHandler(this.onControlFocusedHandler);
            this.chkNewRwt.GotFocus     += new EventHandler(this.onControlFocusedHandler);
            this.chkNewRwtJob.GotFocus  += new EventHandler(this.onControlFocusedHandler);
            this.btnOK.GotFocus         += new EventHandler(this.onControlFocusedHandler);;
            this.btnCancel.GotFocus     += new EventHandler(this.onControlFocusedHandler);

            this.mskSernum.Leave += new EventHandler(this.validateSernumFieldLeave);
            this.txtDealer.Leave += new EventHandler(this.validateDealerFieldLeave);

            this.chkNewRwt.CheckedChanged    += new EventHandler(this.onCheckBoxStateChange);
            this.chkNewRwtJob.CheckedChanged += new EventHandler(this.onCheckBoxStateChange);

            this.getDealer();

            this.numQty.Leave += delegate
            {
                if (this.numQty.Text.Length == 0)
                {
                    this.numQty.Text = "1";
                }
            };
            this.txtVersion.Leave += delegate
            {
                if (this.txtVersion.Text.Length == 0)
                {
                    if (ValidateSN.Check(this.mskSernum.Text))
                    {
                        this.txtVersion.Text = this.mskSernum.Text.Substring(2, 1) + "." + this.mskSernum.Text.Substring(3, 1);
                    }
                }
            };

            this.form_mode = FORM_MODE.EDIT;
        }
Example #7
0
        public SellBookForm(SnWindow parent_window)
        {
            InitializeComponent();
            this.parent_window = parent_window;
            this.G             = this.parent_window.G;
            this.form_mode     = FORM_MODE.EDIT;

            List <MaskedTextBox> lmsk = new List <MaskedTextBox>();

            lmsk.Add(this.mskAsDate);
            List <DateTimePicker> ldtp = new List <DateTimePicker>();

            ldtp.Add(this.dpAsDate);
            PairDatePickerWithMaskedTextBox.Attach(lmsk, ldtp);
        }
Example #8
0
 private void sNToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.sn_wind == null)
     {
         this.sn_wind             = new SnWindow(this);
         this.sn_wind.G           = this.G;
         this.sn_wind.MdiParent   = this;
         this.sn_wind.WindowState = FormWindowState.Maximized;
         this.sn_wind.Show();
     }
     else
     {
         this.sn_wind.Activate();
         if (sn_wind.current_focused_control != null)
         {
             sn_wind.current_focused_control.Focus();
         }
     }
 }
        //public CloudsrvFormDialog(SnWindow parent_window)
        //    : this()
        //{
        //    this.parent_window = parent_window;
        //}

        public CloudsrvFormDialog(SnWindow parent_window, CloudSrv cs = null)
            : this()
        {
            this.parent_window = parent_window;
        }
Example #10
0
 public InquiryMaAndCloud(SnWindow parent_window, INQUIRY_SERVICE_TYPE inquiry_service_type)
     : this()
 {
     this.parent_window        = parent_window;
     this.inquiry_service_type = inquiry_service_type;
 }
Example #11
0
 public MAFormDialog(SnWindow parent_window)
     : this()
 {
     this.parent_window = parent_window;
 }
 public SerialPasswordDialog(MainForm main_form, SnWindow sn_wind)
 {
     InitializeComponent();
     this.main_form = main_form;
     this.sn_wind   = sn_wind;
 }
Example #13
0
 public SNInquiryWindow(SnWindow parentWindow, INQUIRY_TYPE inquiry_type)
     : this()
 {
     this.parentWindow = parentWindow;
     this.inquiry_type = inquiry_type;
 }
Example #14
0
 public ImportListForm(SnWindow parent_window)
 {
     InitializeComponent();
     this.parent_window = parent_window;
     this.G             = this.parent_window.G;
 }