示例#1
0
        /// <summary>
        /// Edit Board From Job Boards List
        /// </summary>
        protected override void Edit()
        {
            JobBoard b = BaseListWindow.listviewCurrent.SelectedItem as JobBoard;

            if (b != null)
            {
                JobBoardCreation bc = new JobBoardCreation(b);
                bc.ShowDialog();
                Files.Instance.SaveBoardFile();
                RefreshListView(JobBoards.Instance);
            }
        }
示例#2
0
        /// <summary>
        /// Add Job Board To Boards List
        /// </summary>
        protected override void Add()
        {
            JobBoardCreation bc = new JobBoardCreation();

            bc.ShowDialog();
            if (bc.Exit == Enum.ExitStatus.Ok)
            {
                JobBoards.Instance.AddObject(bc.Info);
                Files.Instance.SaveBoardFile();
                RefreshListView(JobBoards.Instance);
            }
        }