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(); }
private void button1_Click(object sender, RoutedEventArgs e) { ClosableTab theTabItem = new ClosableTab(); theTabItem.Title = "Small title"; tabControl1.Items.Add(theTabItem); theTabItem.Focus(); }
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(); }
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(); }
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; }
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(); }
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) { } }
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; }
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; }
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; }
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); } }
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; } }
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; } }
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; } }
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; } }
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); } }
//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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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; } }
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("مدیریت عناوین اصلی"); } }
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; } }
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; } }
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; } }
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); } }
//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; } }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }