Esempio n. 1
0
 public Form2(FormResultCallback callback, IEmployeeService employeeService, IPrintingService printingService)
 {
     InitializeComponent();
     _employeeService = employeeService;
     _printingService = printingService;
     this.callback    = callback;
 }
Esempio n. 2
0
        public Form5SQLQuery(FormResultCallback callback, string mainFormQuery)
        {
            InitializeComponent();
            this.callback   = callback;
            CurrentSqlQuery = mainFormQuery;
            DateTime nowDT = DateTime.Now;  //первое значение в полях диапазонов это первое января Текущего года
            DateTime dateLeftDefaultInterval = new DateTime(nowDT.Year, 01, 01);

            dateTimePicker2.Value = dateLeftDefaultInterval;
            dateTimePicker5.Value = dateLeftDefaultInterval;
            costSign.Items.AddRange(new string[5] {
                "     =", "     >", "     >=", "     <", "     <="
            });
        }
Esempio n. 3
0
        public Form3Editing(DataRow rowToEdit, List <Document> attachDocsBefore, FormResultCallback callback)
        {
            InitializeComponent();
            this.callback  = callback;
            this.rowToEdit = rowToEdit;
            editId         = (int)rowToEdit["Номер"];

            attachDocuments = attachDocsBefore;
            docsType        = attachDocuments.FirstOrDefault() != null?attachDocuments.First().Type : TypeRecognizeHelper();

            int cost;

            int.TryParse(rowToEdit["Cost"].ToString(), out cost);

            formCreateDocs = new Form12AttachDocuments(editId, attachDocsBefore, docsType, cost, new CreateDocsCallback(ReadDocsCallback));
        }
Esempio n. 4
0
 public Form8GetMapCases(string name, FormResultCallback callback) : this(callback)
 {
     select_name = name;
 }
Esempio n. 5
0
 public Form8GetMapCases(FormResultCallback callback)
 {
     InitializeComponent();
     this.callback = callback;
 }
 public Form11RenameOrganization(FormResultCallback callback)
 {
     InitializeComponent();
     this.callback = callback;
 }