Example #1
0
 private void bnBrowse_Click(object sender, System.EventArgs e)
 {
     this.folderBrowser.SelectedPath = this.FolderName;
     if (this.folderBrowser.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         this.Result = FAResult.kfaDifferentFolder;
         this.FolderName = this.folderBrowser.SelectedPath;
         this.Close();
     }
 }
Example #2
0
 private void bnBrowse_Click(object sender, System.EventArgs e)
 {
     this.folderBrowser.SelectedPath = this.FolderName;
     if (this.folderBrowser.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         this.Result     = FAResult.kfaDifferentFolder;
         this.FolderName = this.folderBrowser.SelectedPath;
         this.Close();
     }
 }
        public MissingFolderAction(string showName, string season, string folderName)
        {
            this.InitializeComponent();

            this.Result = FAResult.kfaCancel;
            this.FolderName = folderName;
            this.txtShow.Text = showName;
            this.txtSeason.Text = season;
            this.txtFolder.Text = this.FolderName;

            if (string.IsNullOrEmpty(this.FolderName))
            {
                this.txtFolder.Text = "Click Browse..., or Drag+Drop a folder onto this window.";
                this.bnCreate.Enabled = false;
                this.bnRetry.Enabled = false;
            }
        }
Example #4
0
        public MissingFolderAction(string showName, string season, string folderName)
        {
            this.InitializeComponent();

            this.Result         = FAResult.kfaCancel;
            this.FolderName     = folderName;
            this.txtShow.Text   = showName;
            this.txtSeason.Text = season;
            this.txtFolder.Text = this.FolderName;

            if (string.IsNullOrEmpty(this.FolderName))
            {
                this.txtFolder.Text   = "Click Browse..., or Drag+Drop a folder onto this window.";
                this.bnCreate.Enabled = false;
                this.bnRetry.Enabled  = false;
            }
        }
Example #5
0
 private void MissingFolderAction_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
 {
     string[] files = (string[])(e.Data.GetData(DataFormats.FileDrop));
     for (int i = 0; i < files.Length; i++)
     {
         string path = files[i];
         try
         {
             DirectoryInfo di = new DirectoryInfo(path);
             if (di.Exists)
             {
                 this.FolderName = path;
                 this.Result     = FAResult.kfaDifferentFolder;
                 this.Close();
                 return;
             }
         }
         catch
         {
         }
     }
 }
 private void bnCancel_Click(object sender, System.EventArgs e)
 {
     this.Result = FAResult.kfaCancel;
     this.Close();
 }
 private void bnRetry_Click(object sender, System.EventArgs e)
 {
     this.Result = FAResult.kfaRetry;
     this.Close();
 }
 private void bnIgnoreAlways_Click(object sender, System.EventArgs e)
 {
     this.Result = FAResult.kfaIgnoreAlways;
     this.Close();
 }
 private void MissingFolderAction_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
 {
     string[] files = (string[]) (e.Data.GetData(DataFormats.FileDrop));
     for (int i = 0; i < files.Length; i++)
     {
         string path = files[i];
         try
         {
             DirectoryInfo di = new DirectoryInfo(path);
             if (di.Exists)
             {
                 this.FolderName = path;
                 this.Result = FAResult.kfaDifferentFolder;
                 this.Close();
                 return;
             }
         }
         catch
         {
         }
     }
 }
Example #10
0
 private void bnCancel_Click(object sender, System.EventArgs e)
 {
     this.Result = FAResult.kfaCancel;
     this.Close();
 }
Example #11
0
 private void bnRetry_Click(object sender, System.EventArgs e)
 {
     this.Result = FAResult.kfaRetry;
     this.Close();
 }
Example #12
0
 private void bnIgnoreAlways_Click(object sender, System.EventArgs e)
 {
     this.Result = FAResult.kfaIgnoreAlways;
     this.Close();
 }
                public bool Parsing(string str, out List<string> errorMsg)
                {
                    bool result = true;
                    errorMsg = new List<string>();

                    var keyValues = FANextMachineDataInfo.SplitECData(str);

                    if (keyValues.ContainsKey("FUNCTION_RPY"))
                    {
                        FUNCTION_RPY = keyValues["FUNCTION_RPY"];
                    }

                    if (keyValues.ContainsKey("MSG"))
                    {
                        MSG = keyValues["MSG"];
                    }

                    if (keyValues.ContainsKey("RESULT"))
                    {
                        if (keyValues["RESULT"] == "PASS")
                            RESULT = FAResult.PASS;
                        else if (keyValues["RESULT"] == "FAIL")
                            RESULT = FAResult.FAIL;
                        else
                        {
                            result = false;
                            errorMsg.Add("RESULT is not PASS or FAIL");
                        }
                    }

                    return result;
                }
 public void Clear()
 {
     RESULT= FAResult.FAIL;
     MSG = string.Empty;
 }