Ejemplo n.º 1
0
        private void barButtonItem19_ItemClick(object sender, ItemClickEventArgs e)
        {
            FlyoutAction action = new FlyoutAction();

            action.Caption = "المجموعات";
            MyFlyoutDialog dialog = new MyFlyoutDialog(this, action, new GroupForms());

            dialog.AutoSizeMode  = System.Windows.Forms.AutoSizeMode.GrowOnly;
            dialog.StartPosition = FormStartPosition.CenterScreen;
            dialog.Width         = 200;
            dialog.ShowDialog();
        }
Ejemplo n.º 2
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            FlyoutAction action = new FlyoutAction();

            action.Caption = "الحسابات";
            MainAr         c      = new MainAr();
            MyFlyoutDialog dialog = new MyFlyoutDialog(this.ParentForm, action, new SelectAccounts());

            dialog.AutoSizeMode  = System.Windows.Forms.AutoSizeMode.GrowOnly;
            dialog.StartPosition = FormStartPosition.CenterScreen;
            dialog.Width         = 200;
            dialog.ShowDialog();
        }
Ejemplo n.º 3
0
        private void groupBtn_Click(object sender, EventArgs e)
        {
            FlyoutAction action = new FlyoutAction();

            action.Caption = "المجموعات";
            MyFlyoutDialog dialog = new MyFlyoutDialog(this.ParentForm, action, new GroupForms());

            dialog.AutoSizeMode  = System.Windows.Forms.AutoSizeMode.GrowOnly;
            dialog.StartPosition = FormStartPosition.CenterScreen;
            dialog.Width         = 200;
            DialogResult f = dialog.ShowDialog();

            if (f == DialogResult.Cancel)
            {
                dbContextItems            = new Purchase.AccountingSystem();
                bindingSource3.DataSource = dbContextItems.ItemGroups.ToList();
                ItemGroup.Refresh();
            }
        }