private void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Button.Name))
            {
                switch (e.Button.Name.ToLower())
                {
                case "columns":
                    ListViewColumnOptions objListViewColumnOptions = new ListViewColumnOptions(listView);
                    objListViewColumnOptions.ShowDialog();
                    break;

                case "sorting":
                    ListViewSortingOptions objListViewSortingOption = new ListViewSortingOptions(listView);
                    objListViewSortingOption.ShowDialog();
                    break;

                case "checkbox":
                    this.listView.CheckBoxes = !this.listView.CheckBoxes;

                    if (this.listView.CheckBoxes)
                    {
                        //this.ansList.Buttons[12].Visible = false;
                    }
                    break;

                case "multiselect":
                    this.listView.MultiSelect = !this.listView.MultiSelect;
                    e.Button.Pushed           = true;
                    break;

                case "refresh":
                    listView_Load();
                    break;

                case "import":
                    var oImport = new Forms.Import();
                    oImport.Type = Enums.AzManItemType.ApplicationGroups;
                    oImport.ShowDialog();
                    break;

                case "newapplicationgroup":
                    #region New Application Group
                    var newag = new Forms.Application.ApplicationGroup();
                    newag.ShowDialog();
                    break;

                    #endregion
                case "editapplicationgroup":
                    #region Edit Application Group
                    EditRecord();
                    break;
                    #endregion
                }
            }
        }
        private void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Button.Name))
            {
                switch (e.Button.Name.ToLower())
                {
                case "columns":
                    ListViewColumnOptions objListViewColumnOptions = new ListViewColumnOptions(listView);
                    objListViewColumnOptions.ShowDialog();
                    break;

                case "sorting":
                    ListViewSortingOptions objListViewSortingOption = new ListViewSortingOptions(listView);
                    objListViewSortingOption.ShowDialog();
                    break;

                case "checkbox":
                    this.listView.CheckBoxes = !this.listView.CheckBoxes;

                    if (this.listView.CheckBoxes)
                    {
                        //this.ansList.Buttons[12].Visible = false;
                    }
                    break;

                case "multiselect":
                    this.listView.MultiSelect = !this.listView.MultiSelect;
                    e.Button.Pushed           = true;
                    break;

                case "refresh":
                    //RefreshForm();
                    //BindList();
                    this.Update();
                    break;

                case "print":
                    //PrintManager print = new PrintManager();
                    //print.ShowDialog();
                    break;

                case "Edit":
                    //this.ShowEditManager();
                    break;

                case "popup":
                    //ShowRecord();
                    break;
                }
            }
        }
Esempio n. 3
0
        private void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Button.Name))
            {
                switch (e.Button.Name.ToLower())
                {
                case "columns":
                    ListViewColumnOptions objListViewColumnOptions = new ListViewColumnOptions(listView);
                    objListViewColumnOptions.ShowDialog();
                    break;

                case "sorting":
                    ListViewSortingOptions objListViewSortingOption = new ListViewSortingOptions(listView);
                    objListViewSortingOption.ShowDialog();
                    break;

                case "checkbox":
                    this.listView.CheckBoxes = !this.listView.CheckBoxes;

                    if (this.listView.CheckBoxes)
                    {
                        //this.ansList.Buttons[12].Visible = false;
                    }
                    break;

                case "multiselect":
                    this.listView.MultiSelect = !this.listView.MultiSelect;
                    e.Button.Pushed           = true;
                    break;

                case "refresh":
                    listView_Load();
                    break;

                case "newtask":
                    var newTask = new Forms.Definition.Task();
                    newTask.ShowDialog();
                    break;

                case "edittask":
                    EditRecord();
                    break;

                case "deletetask":
                    DeleteRecord();
                    break;
                }
            }
        }
        private void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Button.Name))
            {
                switch (e.Button.Name.ToLower())
                {
                case "columns":
                    ListViewColumnOptions objListViewColumnOptions = new ListViewColumnOptions(listView);
                    objListViewColumnOptions.ShowDialog();
                    break;

                case "sorting":
                    ListViewSortingOptions objListViewSortingOption = new ListViewSortingOptions(listView);
                    objListViewSortingOption.ShowDialog();
                    break;

                case "checkbox":
                    this.listView.CheckBoxes = !this.listView.CheckBoxes;

                    if (this.listView.CheckBoxes)
                    {
                        //this.ansList.Buttons[12].Visible = false;
                    }
                    break;

                case "multiselect":
                    this.listView.MultiSelect = !this.listView.MultiSelect;
                    e.Button.Pushed           = true;
                    break;

                case "refresh":
                    listView_Load();
                    break;

                case "export":
                    var oExport = new Forms.Export();
                    oExport.Type = Enums.AzManItemType.ItemDefinitions;
                    oExport.ShowDialog();
                    break;

                case "import":
                    var oImport = new Forms.Import();
                    oImport.Type = Enums.AzManItemType.ItemDefinitions;
                    oImport.ShowDialog();
                    break;
                }
            }
        }
Esempio n. 5
0
        void tbrDetails_OnButtonClick(object sender, ToolBarButtonClickEventArgs arg)
        {
            if (arg.Button.Tag != null)
            {
                switch (arg.Button.Tag.ToString())
                {
                case "Columns":
                    ListViewColumnOptions objListViewColumnOptions = new ListViewColumnOptions(lvItemList);
                    objListViewColumnOptions.ShowDialog();
                    break;

                case "Sorting":
                    ListViewSortingOptions objListViewSortingOptions = new ListViewSortingOptions(lvItemList);
                    objListViewSortingOptions.ShowDialog();
                    break;

                case "Checkbox":
                    this.lvItemList.CheckBoxes = !lvItemList.CheckBoxes;
                    break;

                case "MultiSelect":
                    lvItemList.MultiSelect = !lvItemList.MultiSelect;
                    arg.Button.Pushed      = true;
                    break;

                case "cmdNew":
                    #region add item
                    PriceMgmtWizard_AddItem addItem = new PriceMgmtWizard_AddItem();
                    addItem.TxType  = _TxType;
                    addItem.PMType  = _PMType;
                    addItem.Closed += (s, e) =>
                    {
                        // 如果要跟手尾,喺呢度加 code,例如 refresh 個 listview
                    };
                    addItem.ShowDialog();
                    break;

                    #endregion
                case "cmdEdit":
                    break;

                case "cmdDelete":
                    break;
                }
            }
        }
Esempio n. 6
0
        private void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Button.Name))
            {
                switch (e.Button.Name.ToLower())
                {
                case "columns":
                    ListViewColumnOptions objListViewColumnOptions = new ListViewColumnOptions(listView);
                    objListViewColumnOptions.ShowDialog();
                    break;

                case "sorting":
                    ListViewSortingOptions objListViewSortingOption = new ListViewSortingOptions(listView);
                    objListViewSortingOption.ShowDialog();
                    break;

                case "checkbox":
                    this.listView.CheckBoxes = !this.listView.CheckBoxes;

                    if (this.listView.CheckBoxes)
                    {
                        //this.ansList.Buttons[12].Visible = false;
                    }
                    break;

                case "multiselect":
                    this.listView.MultiSelect = !this.listView.MultiSelect;
                    e.Button.Pushed           = true;
                    break;

                case "refresh":
                    listView_Load();
                    break;

                case "manageauthorization":
                    var manageAuth = new Forms.Authorization.ManageAuthorization();
                    manageAuth.ShowDialog();
                    break;
                }
            }
        }
Esempio n. 7
0
        void ansCare_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Button.Name))
            {
                switch (e.Button.Name.ToLower())
                {
                case "refresh":
                    this.RefreshClick(e.Button, new EventArgs());
                    this.Update();
                    break;

                case "preference":
                    this.PreferenceClick(e.Button, new EventArgs());
                    this.Update();
                    break;

                case "columns":
                    ListViewColumnOptions objListViewColumnOptions = new ListViewColumnOptions(this.lvList);
                    objListViewColumnOptions.ShowDialog();
                    break;

                case "sorting":
                    ListViewSortingOptions objListViewSortingOptions = new ListViewSortingOptions(this.lvList);
                    objListViewSortingOptions.ShowDialog();
                    break;

                case "checkbox":
                    this.lvList.CheckBoxes = !this.lvList.CheckBoxes;
                    break;

                case "multiselect":
                    this.lvList.MultiSelect = !this.lvList.MultiSelect;
                    e.Button.Pushed         = true;
                    break;

                case "show":
                    this.ShowClick(e.Button, new EventArgs());
                    break;
                }
            }
        }
Esempio n. 8
0
        private void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Button.Name))
            {
                switch (e.Button.Name.ToLower())
                {
                case "columns":
                    ListViewColumnOptions objListViewColumnOptions = new ListViewColumnOptions(listView);
                    objListViewColumnOptions.ShowDialog();
                    break;

                case "sorting":
                    ListViewSortingOptions objListViewSortingOption = new ListViewSortingOptions(listView);
                    objListViewSortingOption.ShowDialog();
                    break;

                case "checkbox":
                    this.listView.CheckBoxes = !this.listView.CheckBoxes;

                    if (this.listView.CheckBoxes)
                    {
                        //this.ansList.Buttons[12].Visible = false;
                    }
                    break;

                case "multiselect":
                    this.listView.MultiSelect = !this.listView.MultiSelect;
                    e.Button.Pushed           = true;
                    break;

                case "refresh":
                    listView_Load();
                    break;

                case "export":
                    var oExport = new Forms.Export();
                    oExport.Type = Enums.AzManItemType.Storage;
                    oExport.ShowDialog();
                    break;

                case "import":
                    var oImport = new Forms.Import();
                    oImport.Type = Enums.AzManItemType.Storage;
                    oImport.ShowDialog();
                    break;

                case "editstore":
                    #region Edit selected store
                    EditRecord();
                    break;

                    #endregion
                case "newstore":
                    #region New store
                    Session["selectedObject"] = null;
                    var oNewStore = new Forms.Store.Store();
                    oNewStore.ShowDialog();
                    break;
                    #endregion
                }
            }
        }
Esempio n. 9
0
 public void ReorderColumns()
 {
     ListViewColumnOptions objListViewColumnOptions = new ListViewColumnOptions(this.listView1);
     objListViewColumnOptions.ShowDialog();
 }
Esempio n. 10
0
        private void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Button.Name))
            {
                switch (e.Button.Name.ToLower())
                {
                case "columns":
                    ListViewColumnOptions objListViewColumnOptions = new ListViewColumnOptions(listView);
                    objListViewColumnOptions.ShowDialog();
                    break;

                case "sorting":
                    ListViewSortingOptions objListViewSortingOption = new ListViewSortingOptions(listView);
                    objListViewSortingOption.ShowDialog();
                    break;

                case "checkbox":
                    this.listView.CheckBoxes = !this.listView.CheckBoxes;

                    if (this.listView.CheckBoxes)
                    {
                        //this.ansList.Buttons[12].Visible = false;
                    }
                    break;

                case "multiselect":
                    this.listView.MultiSelect = !this.listView.MultiSelect;
                    e.Button.Pushed           = true;
                    break;

                case "refresh":
                    this.Update();
                    break;

                case "applicationproperties":
                    var oEditApplicatione = new Forms.Application.Application();
                    oEditApplicatione.ShowDialog();
                    break;

                case "export":
                    var oExport = new Forms.Export();
                    oExport.Type = Enums.AzManItemType.Application;
                    oExport.ShowDialog();
                    break;

                case "import":
                    var oImport = new Forms.Import();
                    oImport.Type = Enums.AzManItemType.ApplicationGroups;
                    oImport.ShowDialog();
                    break;

                case "hierarchyview":
                    var oHierarchyView = new Forms.Application.HierarchyView();
                    oHierarchyView.ShowDialog();
                    break;

                case "checkaccess":
                    var oCheckAccess = new Forms.Application.CheckAccess();
                    oCheckAccess.ShowDialog();
                    break;
                }
            }
        }
Esempio n. 11
0
        private void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Button.Name))
            {
                switch (e.Button.Name.ToLower())
                {
                case "columns":
                    ListViewColumnOptions objListViewColumnOptions = new ListViewColumnOptions(listView);
                    objListViewColumnOptions.ShowDialog();
                    break;

                case "sorting":
                    ListViewSortingOptions objListViewSortingOption = new ListViewSortingOptions(listView);
                    objListViewSortingOption.ShowDialog();
                    break;

                case "checkbox":
                    this.listView.CheckBoxes = !this.listView.CheckBoxes;

                    if (this.listView.CheckBoxes)
                    {
                        //this.ansList.Buttons[12].Visible = false;
                    }
                    break;

                case "multiselect":
                    this.listView.MultiSelect = !this.listView.MultiSelect;
                    e.Button.Pushed           = true;
                    break;

                case "refresh":
                    #region Refresh
                    listView_Load();
                    Update();
                    break;

                    #endregion
                case "hierarchyview":
                    var oHierarchyView = new Forms.Store.HierarchyView();
                    oHierarchyView.ShowDialog();
                    break;

                case "export":
                    var oExport = new Forms.Export();
                    oExport.Type = Enums.AzManItemType.Store;
                    oExport.ShowDialog();
                    break;

                case "import":
                    var oImport = new Forms.Import();
                    oImport.Type = Enums.AzManItemType.Store;
                    oImport.ShowDialog();
                    break;

                case "storeproperties":
                    #region Edit Store properties
                    var oEditStore = new Forms.Store.Store();
                    oEditStore.ShowDialog();
                    break;

                    #endregion
                case "editapplication":
                    #region Edit application
                    EditRecord();
                    break;

                    #endregion
                case "newapplication":
                    #region New application
                    var oNewApplication = new Forms.Application.Application();
                    oNewApplication.FormClosed += Application_FormClosed;
                    oNewApplication.ShowDialog();
                    break;
                    #endregion
                }
            }
        }