static void Frame_FrameLoaded(Frame fr) { LogWriter.WriteLogSucces(String.Format("Frame {0} loaded", fr.GetType())); CurrentFrame = fr; //if (CurrentFrame is MainMenuFrame) //{ // //Task.Factory.StartNew(() => // ////DescisionMaker.SendExpedition(Dock.Fleets.Find(x => x.ID == 3)) // //OpenExpeditions() // //); //} //if (CurrentFrame is Expeditions) //{ // //(CurrentFrame as Expeditions).StartExpedition(1, 2, 3); // //CurrentFrame.OpenMainMenu(); // Task.Factory.StartNew(() => // //DescisionMaker.SendExpedition(Dock.Fleets.Find(x => x.ID == 3)) // OpenMainMenu()); //} }
public static void Init() { CurrentFrame=new StartFrame(); Frame.FrameLoaded += Frame_FrameLoaded; }