Пример #1
0
		void lbImportFolders_MouseDoubleClick(object sender, MouseButtonEventArgs e)
		{
			object obj = lbImportFolders.SelectedItem;
			if (obj == null) return;

			ImportFolder ns = (ImportFolder)obj;
			ImportFolderForm frm = new ImportFolderForm();
			frm.Owner = GetTopParent();
			frm.Init(ns);
			bool? result = frm.ShowDialog();
		}
        void btnAddImportFolder_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ImportFolderForm frm = new ImportFolderForm();
                frm.Owner = GetTopParent();
                frm.Init(new ImportFolder());
                bool? result = frm.ShowDialog();

                ServerInfo.Instance.RefreshImportFolders();
            }
            catch (Exception ex)
            {
                Utils.ShowErrorMessage(ex);
            }
        }
Пример #3
0
        void btnAddImportFolder_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ImportFolderForm frm = new ImportFolderForm();
                frm.Owner = GetTopParent();
                frm.Init(new ImportFolder());
                bool?result = frm.ShowDialog();

                ServerInfo.Instance.RefreshImportFolders();
            }
            catch (Exception ex)
            {
                Utils.ShowErrorMessage(ex);
            }
        }
Пример #4
0
        void lbImportFolders_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            object obj = lbImportFolders.SelectedItem;

            if (obj == null)
            {
                return;
            }

            ImportFolder     ns  = (ImportFolder)obj;
            ImportFolderForm frm = new ImportFolderForm();

            frm.Owner = GetTopParent();
            frm.Init(ns);
            bool?result = frm.ShowDialog();
        }