예제 #1
0
        private void btnMiNew_Click(object sender, EventArgs e)
        {
            var misceditor = new MicilaneousView();

            misceditor.NewInvoice = this;
            misceditor.ShowObject(null);
            misceditor.ShowDialog();
        }
예제 #2
0
 public void OpenSelectedItem()
 {
     if (miscellaneousItems != null)
     {
         var miscdetail = new MicilaneousView();
         miscdetail.ShowObject(_miscellaneous);
         miscdetail.Dock = DockStyle.Fill;
         miscdetail.ShowDialog();
     }
 }
예제 #3
0
        private void gridControl1_DoubleClick(object sender, EventArgs e)
        {
            var selectedmiscelaneous = miscelaneousbindingSource.Current as MiscellaneousItems;
            var editmisc             = new MicilaneousView();

            editmisc.ShowObject(selectedmiscelaneous);
            var result = editmisc.ShowDialog();

            if (result == DialogResult.OK)
            {
                _invoice.MiscellaneousItem.Add(editmisc.CurrentObject);
            }
        }
예제 #4
0
        private void btnMiNew_Click(object sender, EventArgs e)
        {
            var misceditor = new MicilaneousView();
            var misc       = new MiscellaneousItems();

            misceditor.ShowObject(misc);
            var result = misceditor.ShowDialog();

            if (result == DialogResult.OK)
            {
                _invoice.MiscellaneousItem.Add(misceditor.CurrentObject);
            }
        }