Пример #1
0
        private void button2_Click(object sender, RoutedEventArgs e)
        {
            ClosableTab theTabItem = new ClosableTab();

            theTabItem.Title = "A much longer title for an example";
            tabControl1.Items.Add(theTabItem);
            theTabItem.Focus();
        }
Пример #2
0
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            ClosableTab theTabItem = new ClosableTab();

            theTabItem.Title = "Small title";
            tabControl1.Items.Add(theTabItem);
            theTabItem.Focus();
        }
Пример #3
0
        private void btnAddTab_Click(object sender, RoutedEventArgs e)
        {
            ClosableTab tabclose = new ClosableTab();

            //tabclose.Header = "Teste "+DateTime.Today.Second;
            //tabclose.Title = "Paciente";
            tabclose.Content = new MainPaciente_UserControl();
            this.tabControl.Items.Add(tabclose);
            tabclose.Focus();
        }
Пример #4
0
 private void Comparar_Click(object sender, RoutedEventArgs e)
 {
     ClosableTab theTabItem = new ClosableTab();
     theTabItem.Title = FunGer.cComparar;
     var cli = new Comparar();
     cli.Width = theTabItem.Width;
     theTabItem.Content = cli;
     tbcPadrao.Items.Add(theTabItem);
     theTabItem.Focus();
 }
Пример #5
0
        private void btn_0000_Click(object sender, RoutedEventArgs e)
        {
            Class.Variable.check_for_tab_names.get_tab_names += Localize.PersonSd;
            Class.Variable.check_for_tab_names.get_tab_names += ",";


            ClosableTab tabItem = new ClosableTab();

            tabItem.Title = Localize.PersonSd;
            mainTab.Items.Add(tabItem);
            tabItem.Focus();
            tabItem.Content = new PersonGroup().Content;
        }
Пример #6
0
        private void OpenOneTab(CustomMenuItem data)
        {
            //这里可以动态加载其他dll文件中的组件
            Assembly assem   = Assembly.LoadFile($"{Directory.GetCurrentDirectory()}\\{data.DllName}");
            var      onePage = assem.CreateInstance(data.ClassName);

            ClosableTab theTabItem = new ClosableTab();

            theTabItem.Content = onePage;
            theTabItem.Title   = data.Title;
            myTabControl.Items.Add(theTabItem);
            theTabItem.Focus();
        }
Пример #7
0
 private static void openTab()
 {
     try {
         Session.MainWindow.Dispatcher.Invoke((Action)(() => {
             ClosableTab tab = new ClosableTab();
             tab.Title = headerName;
             tab.Content = uc;
             Session.MainWindow.tabControl_tabControl.Items.Add(tab);
             tab.Focus();
         }));
     } catch (Exception) {
     }
 }
Пример #8
0
        private void btn_moienCodeManagement_Click_1(object sender, RoutedEventArgs e)
        {
            Class.Variable.check_for_tab_names.get_tab_names += "کدهای معین";
            Class.Variable.check_for_tab_names.get_tab_names += ",";

            ClosableTab theTabItem = new ClosableTab();

            theTabItem.Title     = "کدهای معین";
            theTabItem.Unloaded += tabItem_Unloaded;
            mainTab.Items.Add(theTabItem);
            theTabItem.Focus();

            theTabItem.Content = new AccountingKernel.Forms.MmoienCode.MoeinSearch().Content;
        }
Пример #9
0
        private void btn_hesab_tafsili_Click_1(object sender, RoutedEventArgs e)
        {
            Class.Variable.check_for_tab_names.get_tab_names += "حسابهای تفصیل";
            Class.Variable.check_for_tab_names.get_tab_names += ",";

            AccountingKernel.Class.Variable.Variables.idAccountingMoien = Class.Variable.Variables.ID_for_tarife_hesabe_tafsili;

            ClosableTab tabItem = new ClosableTab();

            tabItem.Title = "حسابهای تفصیل";
            mainTab.Items.Add(tabItem);
            tabItem.Focus();
            tabItem.Content = new ManageTafsiliGroup().Content;
        }
Пример #10
0
        private void btn_manageMainContent_1_Click(object sender, RoutedEventArgs e)
        {
            //
            Class.Variable.check_for_tab_names.get_tab_names += Localize.MoeinSd;
            Class.Variable.check_for_tab_names.get_tab_names += ",";


            ClosableTab tabItem = new ClosableTab();

            tabItem.Title = Localize.MoeinSd;
            mainTab.Items.Add(tabItem);
            tabItem.Focus();
            tabItem.Content = new AccountingKernel.Forms.MmoienCode.MoeinGroup().Content;
        }
Пример #11
0
        private void btn_Assest_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += Localize.Asset;
                Class.Variable.check_for_tab_names.get_tab_names += ",";

                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = Localize.Asset;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.Asset.FrmAsset().Content;
            }
            catch (Exception ex)
            {
                AccountingKernel.Forms.Base.BaseWindow.ShowError(ex);
            }
        }
Пример #12
0
        private void btn_manageBank_00_Click_1(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "لیست تنخواه";
                Class.Variable.check_for_tab_names.get_tab_names += ",";

                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "لیست تنخواه";
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.tankhah.frm_listTankhah().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #13
0
        private void btn_ReturnOfSaleManagement_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += Localize.ReturnOfSale;
                Class.Variable.check_for_tab_names.get_tab_names += ",";

                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = Localize.ReturnOfSale;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.Bills.ReturnOfSale.FrmReturnOfSaleManagment().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #14
0
        private void click_personnel(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "پرسنل";
                Class.Variable.check_for_tab_names.get_tab_names += ",";

                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "پرسنل";
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new PersonInfoSubmit().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #15
0
        private void click_user(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "تعریف کاربر";
                Class.Variable.check_for_tab_names.get_tab_names += ",";

                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "تعریف کاربر";
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.user_personel.frm_user().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #16
0
        private void btn_DefinedMandate_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "تعریف حکم";
                Class.Variable.check_for_tab_names.get_tab_names += ",";

                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "تعریف حکم";
                // tabItem.Title = Localize.OperativeManagement;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new PayrollContract().Content;
            }
            catch (Exception ex)
            {
                AccountingKernel.Forms.Base.BaseWindow.ShowError(ex);
            }
        }
Пример #17
0
        //btn_formAsnad_Click
        private void btn_formAsnad_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += Localize.DocumentForm;
                Class.Variable.check_for_tab_names.get_tab_names += ",";

                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = Localize.DocumentForm;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();

                tabItem.Content = new AccountingKernel.Forms.Document.frm_modAsnad().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #18
0
        private void btn_manageInterfaces_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "رابط های مالی";
                Class.Variable.check_for_tab_names.get_tab_names += ",";


                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "رابط های مالی";
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.Interface.frmInterfaces().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #19
0
        private void grouh_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "گروه";
                Class.Variable.check_for_tab_names.get_tab_names += ",";


                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "گروه";
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.saleMaly.frm_grouh().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #20
0
        private void _tarife_pardakht_Click_1(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "پرداخت";
                Class.Variable.check_for_tab_names.get_tab_names += ",";

                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "پرداخت";
                // tabItem.Title = Localize.OperativeManagement;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.KazaneDari.frm_list_pardakht().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #21
0
        private void btn_tarifeSandogh_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "تعریف صندوق";
                Class.Variable.check_for_tab_names.get_tab_names += ",";


                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "تعریف صندوق";
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.Sandogh.frm_sandogh().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #22
0
        private void btn_manageBank_0022_Click_1(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "برگشت چک خرج شده";
                Class.Variable.check_for_tab_names.get_tab_names += ",";


                ClosableTab tabItem = new ClosableTab();
                Class.Variable.Variables.noe_cheque = "6";
                tabItem.Title = "برگشت چک خرج شده";
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.tankhah.frm_cheque().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #23
0
        private void btn_manageBank_000_Click_1(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "خرج چک";
                Class.Variable.check_for_tab_names.get_tab_names += ",";

                Class.Variable.Variables.noe_cheque = "1";
                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "خرج چک";
                // tabItem.Title = Localize.OperativeManagement;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.tankhah.frm_cheque().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #24
0
        private void btn_manageBank_1_Click_1(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "تعریف بانک";
                Class.Variable.check_for_tab_names.get_tab_names += ",";


                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "تعریف بانک";
                mainTab.Items.Add(tabItem);
                tabItem.Focus();

                tabItem.Content = new AccountingKernel.Forms.baseInfo.frm_list_bank().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #25
0
        private void btn_manageMainContent_Click(object sender, RoutedEventArgs e)
        {
            //
            if (check_for_tab_state("مدیریت عناوین اصلی"))
            {
                Class.Variable.check_for_tab_names.get_tab_names += "مدیریت عناوین اصلی";
                Class.Variable.check_for_tab_names.get_tab_names += ",";

                ClosableTab tabItem = new ClosableTab();   ///
                tabItem.Title     = "مدیریت عناوین اصلی";
                tabItem.Unloaded += tabItem_Unloaded;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.MbaseInfo.FrmBaseInfo().Content;
            }
            else
            {
                MessageBox.Show("مدیریت عناوین اصلی");
            }
        }
Пример #26
0
        private void btnRepository_click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += Localize.Repository;
                Class.Variable.check_for_tab_names.get_tab_names += ",";


                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = Localize.Repository;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();

                tabItem.Content = new AccountingKernel.Forms.baseInfo.FrmBaseInfo(Common.Constants.BaseInfoType.Repository).Content;
            }
            catch
            {
                throw;
            }
        }
Пример #27
0
        private void btn_CompaniesManagement_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += Localize.CompanyManagement;
                Class.Variable.check_for_tab_names.get_tab_names += ",";


                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = Localize.CompanyManagement;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();

                tabItem.Content = new AccountingKernel.Forms.Company.frmCompanies().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #28
0
        private void sale_maly_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "سال مالی";
                Class.Variable.check_for_tab_names.get_tab_names += ",";

                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "سال مالی";
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new AccountingKernel.Forms.saleMaly.frm_saleMaly().Content;
                current_tab     = "سال مالی";
                //tabItem.Unloaded += tabItem_Unloaded;
            }
            catch
            {
                throw;
            }
        }
Пример #29
0
        private void btn_CommissionAgents_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "عوامل حقوق";
                Class.Variable.check_for_tab_names.get_tab_names += ",";


                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "عوامل حقوق";
                // tabItem.Title = Localize.OperativeManagement;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new PayrollSalaryFactor().Content;
            }
            catch (Exception ex)
            {
                AccountingKernel.Forms.Base.BaseWindow.ShowError(ex);
            }
        }
Пример #30
0
        //tarife_toole_code_Click_1
        private void tarife_toole_code_Click_1(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "تعریف طول کد";
                Class.Variable.check_for_tab_names.get_tab_names += ",";


                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "تعریف طول کد";
                // tabItem.Title = Localize.CompanyManagement;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();

                tabItem.Content = new AccountingKernel.Forms.Settings.frm_tarife_toole_code().Content;
            }
            catch
            {
                throw;
            }
        }
Пример #31
0
        private void btn_Personel_1_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Class.Variable.check_for_tab_names.get_tab_names += "تعریف پرسنل";
                Class.Variable.check_for_tab_names.get_tab_names += ",";



                ClosableTab tabItem = new ClosableTab();
                tabItem.Title = "تعریف پرسنل";
                // tabItem.Title = Localize.OperativeManagement;
                mainTab.Items.Add(tabItem);
                tabItem.Focus();
                tabItem.Content = new PersonInfoSubmitChild(null).Content;
            }
            catch
            {
                throw;
            }
        }
        private void lstCustomers_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            ListViewItem item = lstCustomers.SelectedItem as ListViewItem;
            if (item == null)
                return;

            CustomerAdminObject customer = item.Content as CustomerAdminObject;
            if (customer == null)
                return;

            CustomerInfoPage customerInfo = new CustomerInfoPage(customer);

            if (CacheManager.MainTabControl == null)
            {
                throw new NotImplementedException("MainTabControl == null");
            }

            ClosableTab tabItem = new ClosableTab();
            tabItem.BackGroundColor = LookAndFeel.CustomerTabColor;
            customerInfo.SetParentTabControl(tabItem);
            tabItem.Height = LookAndFeel.TabItemHeight;
            tabItem.Title = "Customer: " + customer.LastName + ", " + customer.FirstName;
            tabItem.Content = customerInfo;
            CacheManager.MainTabControl.Items.Add(tabItem);
            tabItem.Focus();

            //CustomerInfoPage customerInfo = new CustomerInfoPage(customer);
            //customerInfo.Show();
        }
Пример #33
0
        private void lblCustomerFound_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Dictionary<CustomerCacheSearchKey, string> searchParam = new Dictionary<CustomerCacheSearchKey, string>();
            CustomerCache cache = null;
            CustomerAdminObject customer = null;
            if (!string.IsNullOrEmpty(TxtCustomerId.Text))
            {
                searchParam.Add(CustomerCacheSearchKey.Id, TxtCustomerId.Text);
                cache = new CustomerCache(searchParam);
            }

            if (cache != null && cache.Count > 0)
            {
                customer = cache[0];
            }
            else
            {
                return;
            }

            CustomerInfoPage customerInfo = new CustomerInfoPage(customer);

            if (CacheManager.MainTabControl == null)
            {
                throw new NotImplementedException("MainTabControl == null");
            }

            ClosableTab tabItem = new ClosableTab();
            tabItem.BackGroundColor = LookAndFeel.CustomerTabColor;
            customerInfo.SetParentTabControl(tabItem);
            tabItem.Height = LookAndFeel.TabItemHeight;
            tabItem.Title = "Customer: " + customer.LastName + ", " + customer.FirstName;
            tabItem.Content = customerInfo;
            CacheManager.MainTabControl.Items.Add(tabItem);
            tabItem.Focus();
        }
Пример #34
0
 private void MenuItem_Click(object sender, RoutedEventArgs e)
 {
     ClosableTab theTabItem = new ClosableTab();
     theTabItem.Title = FunGer.cUsuario;
     var cli = new UsuarioGridView();
     cli.Width = theTabItem.Width;
     theTabItem.Content = cli;
     tbcPadrao.Items.Add(theTabItem);
     theTabItem.Focus();
 }
Пример #35
0
        private void BtnCreateNewCustomer_Click(object sender, RoutedEventArgs e)
        {
            CustomerInfoPage page = new CustomerInfoPage();

            if (CacheManager.MainTabControl == null)
            {
                throw new NotImplementedException("MainTabControl == null");
            }

            ClosableTab tabItem = new ClosableTab();
            tabItem.BackGroundColor = LookAndFeel.CustomerTabColor;
            page.SetParentTabControl(tabItem);
            tabItem.Height = LookAndFeel.TabItemHeight;
            tabItem.Title = "New Customer";
            tabItem.Content = page;
            CacheManager.MainTabControl.Items.Add(tabItem);
            tabItem.Focus();

            //CustomerInfoPage customerInfo = new CustomerInfoPage();
            //customerInfo.Show();
        }
Пример #36
0
        private void BtnSearchVehicles_Click(object sender, RoutedEventArgs e)
        {
            VehicleSearchPage page = new VehicleSearchPage();

            if (CacheManager.MainTabControl == null)
            {
                throw new NotImplementedException("MainTabControl == null");
            }

            ClosableTab tabItem = new ClosableTab();
            tabItem.BackGroundColor = LookAndFeel.SearchVehicleColor;
            tabItem.Height = LookAndFeel.TabItemHeight;
            tabItem.Title = page.PageTitle;
            tabItem.Content = page;
            CacheManager.MainTabControl.Items.Add(tabItem);
            tabItem.Focus();
        }
Пример #37
0
        private void BtnCreateNewVehicle_Click(object sender, RoutedEventArgs e)
        {
            VehicleInfoWindow page = new VehicleInfoWindow();

            if (CacheManager.MainTabControl == null)
            {
                throw new NotImplementedException("MainTabControl == null");
            }

            ClosableTab tabItem = new ClosableTab();
            tabItem.BackGroundColor = LookAndFeel.VehicleTabColor;
            page.SetParentTabControl(tabItem);
            tabItem.Height = LookAndFeel.TabItemHeight;
            tabItem.Title = "New Vehicle";
            tabItem.Content = page;
            CacheManager.MainTabControl.Items.Add(tabItem);

            tabItem.Focus();
        }
Пример #38
0
        private void BtnSearchTasks_Click(object sender, RoutedEventArgs e)
        {
            TasksSearchPage page = new TasksSearchPage();
            page.HorizontalAlignment = HorizontalAlignment.Stretch;
            page.VerticalAlignment = VerticalAlignment.Stretch;

            if (CacheManager.MainTabControl == null)
            {
                throw new NotImplementedException("MainTabControl == null");
            }

            ClosableTab tabItem = new ClosableTab();
            tabItem.BackGroundColor = LookAndFeel.SearchTasksColor;
            tabItem.Height = LookAndFeel.TabItemHeight;
            tabItem.Title = page.PageTitle;
            tabItem.Content = page;
            CacheManager.MainTabControl.Items.Add(tabItem);
            tabItem.Focus();
        }