Exemplo n.º 1
0
 private void OnOk(object sender, EventArgs e)
 {
     //Event handler for Ok button clicked
     string[]   inputs    = new string[] { this.txtInput1.Text };
     decimal    weight    = 10;
     string     freightID = this.mAssignmentDS.AssignmentsTable[0].FreightID;
     SortedItem si        = FreightProxy.ProcessInputs(inputs, weight, "00", "", freightID);
     //Print
 }
Exemplo n.º 2
0
        private void OnFormLoad(object sender, System.EventArgs e)
        {
            //Load conditions
            this.Cursor = Cursors.WaitCursor;
            try {
                //Initialize controls
                Splash.Close();
                this.Visible = true;
                Application.DoEvents();

                //Set control defaults
                Workstation w = FreightProxy.GetStation("JAST001");
                this.Text += w.Number;
                this.mAssignmentDS.Merge(FreightProxy.GetFreightAssignments(w.WorkStationID));
            }
            catch (Exception ex) { App.ReportError(ex, true); }
            finally { setUserServices(); this.Cursor = Cursors.Default; }
        }