private void SplashScreenDesignerFrm_Load(object sender, EventArgs e) { txtBoxStatMsg.Text = String.Format(@"App Version {0}. Loading...", ApplicationSettings.ApplicationVersionDisplay); ApplicationArgumentModel appArg = ProjectSession.Instance().ApplicationArgumentModel; if (appArg.IsFileOpenCase) { txtBoxStatMsg.Text = String.Format(@"App Version {0}. Opening project '{1}' ...", ApplicationSettings.ApplicationVersionDisplay, appArg.FileName); } }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ApplicationArgumentModel applicationArgumentModel = new ApplicationArgumentModel(args); ProjectSession.Instance().ApplicationArgumentModel = applicationArgumentModel; if (applicationArgumentModel.IsOpenProjectBatchFile) { Application.Run(new OneClickProcessorFrm()); } else { SplashScreenDesignerFrm.GetIntance().Show(); Application.Run(new ZipDesigner()); } }
public OneClickProcessorFrm() { InitializeComponent(); projectSession = ProjectSession.Instance(); applicationArgumentModel = projectSession.ApplicationArgumentModel; }