private void menuStripView_RcloneConfig_Click(object sender, EventArgs e) { //look for existing wizard forms Form fc = Application.OpenForms["rcloneExplorerSetupWiz"]; //if there are none, open one if (fc == null) { var SetupWiz = new rcloneExplorerSetupWiz(); SetupWiz.Show(); } }
public rcloneExplorer() { //init classes miscContainer.init(); uploadsHandler.init(); downloadsHandler.init(); syncingHandler.init(); internalExecHandler.init(); exploreHandler.init(); InitializationHandler.init(); tickHandler.init(); //init rclone settings InitializationHandler.initRcloneSettings(); //wait for initial setup to complete if need be if (initialSetup) { var SetupWiz = new rcloneExplorerSetupWiz(); var waitforcomplete = SetupWiz.ShowDialog(); initialSetup = false; } //start the splashscreen in a background thread so the main form can work away new Thread(() => { Application.Run(new rcloneSplash()); }).Start(); //initialize the form myform = this; this.Visible = false; this.InitializeComponent(); //form UI adjustments InitializationHandler.initMainUI(); //run rclone for the first time to get a list of files InitializationHandler.initSyncSettings(); //start rclone InitializationHandler.initRcloneProcess(); notifyIconPub = notifyIcon; }