コード例 #1
0
        public MainForm()
        {
            InitializeComponent();

            this.FormClosed += (ob, e) => { Application.Exit(); };

            dataProviderClient = new DataProviderClient();
        }
コード例 #2
0
        public SignsForm(DataProviderService.DataProviderClient dataProviderClient, Form sourceForm)
        {
            InitializeComponent();
            this.SignsTable               = new DataTable();
            this.DataProviderClient       = dataProviderClient;
            this.EditRowMainTabSourceForm = sourceForm as EditRowMainTab;

            EditRowMainTabSourceForm.CreateChildrenGrid(this, SelectorOptions.GetSign, this.dataGridViewSigns, EditRowMainTabSourceForm.tbSign);
        }
コード例 #3
0
        public AccountablesForm(DataProviderService.DataProviderClient dataProviderClient, Form sourceForm)
        {
            InitializeComponent();

            this.AccountableTable         = new DataTable();
            this.DataProviderClient       = dataProviderClient;
            this.EditRowMainTabSourceForm = sourceForm as EditRowMainTab;

            EditRowMainTabSourceForm.CreateChildrenGrid(this, SelectorOptions.GetAccountables, this.grid, EditRowMainTabSourceForm.tbAccountables);
        }
コード例 #4
0
        public EditRowMainTab(DataGridViewRow row, DataTable table, DataProviderService.DataProviderClient dataProviderClient)
        {
            InitializeComponent();

            this.Row   = row;
            this.Table = table;
            this.DataProviderClient = dataProviderClient;


            dtpDate.Text          = Row.Cells["Дата"].Value.ToString();
            tbSign.Text           = Row.Cells["Приход/Расход"].Value.ToString();
            tbProject.Text        = Row.Cells["Проект"].Value.ToString();
            tbAccountables.Text   = Row.Cells["Подотчетник"].Value.ToString();
            tbItem.Text           = Row.Cells["Статья"].Value.ToString();
            tbTranscriptItem.Text = Row.Cells["Расшифровка"].Value.ToString();
            tbSum.Text            = Row.Cells["Сумма"].Value.ToString();
        }