Example #1
0
 public CookDetailView(MabiCooker Main, CookData Exchange, ListBox FavView)
 {
     InitializeComponent();
     this.MainWindow  = Main;
     this.CookInfo    = Exchange;
     this.FavListView = FavView;
     UpdateData(this.CookInfo);
 }
Example #2
0
 public CookDetailView(MabiCooker Main, CookData Exchange, ListBox FavView)
 {
     InitializeComponent();
     this.MainWindow = Main;
     this.CookInfo = Exchange;
     this.FavListView = FavView;
     UpdateData(this.CookInfo);
 }
Example #3
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(true);
     Form RunningApp = new MabiCooker();
     if (!MabiCooker.isLoaded) Application.Exit();
     else Application.Run(RunningApp);
 }
Example #4
0
        public CookRatioView(MabiCooker Main, ListBox FavView)
        {
            InitializeComponent();

            if (Properties.Settings.Default.LastRatioPoint.X != 0 && Properties.Settings.Default.LastRatioPoint.Y != 0)
            {
                this.StartPosition = FormStartPosition.Manual;
                this.Location      = new Point(Properties.Settings.Default.LastRatioPoint.X, Properties.Settings.Default.LastRatioPoint.Y);
            }

            this.FavListView = FavView;
            this.MainWindow  = Main;
            initial_height   = this.Size.Height;
            tooltip.SetToolTip(lCloseRatio, Properties.Resources.StrClose);
        }
Example #5
0
        public CookRatioView(MabiCooker Main, ListBox FavView)
        {
            InitializeComponent();

            if (Properties.Settings.Default.LastRatioPoint.X != 0 && Properties.Settings.Default.LastRatioPoint.Y != 0)
            {
                this.StartPosition = FormStartPosition.Manual;
                this.Location = new Point(Properties.Settings.Default.LastRatioPoint.X, Properties.Settings.Default.LastRatioPoint.Y);
            }

            this.FavListView = FavView;
            this.MainWindow = Main;
            initial_height = this.Size.Height;
            tooltip.SetToolTip(lCloseRatio, Properties.Resources.StrClose);
        }
Example #6
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(true);
            Form RunningApp = new MabiCooker();

            if (!MabiCooker.isLoaded)
            {
                Application.Exit();
            }
            else
            {
                Application.Run(RunningApp);
            }
        }
Example #7
0
        public CookDetailView(MabiCooker Main, int DataIndex, Cook Data, ListBox FavView, List<Stuff> StuffData)
        {
            InitializeComponent();

            if (Properties.Settings.Default.LastInfoPoint.X != 0 && Properties.Settings.Default.LastInfoPoint.Y != 0)
            {
                this.StartPosition = FormStartPosition.Manual;
                this.Location = new Point(Properties.Settings.Default.LastInfoPoint.X, Properties.Settings.Default.LastInfoPoint.Y);
            }

            this.Selected = Data;
            this.FavListView = FavView;
            this.MainWindow = Main;
            this.DataIndex = DataIndex;
            this.StuffData = StuffData;
            UpdateData(DataIndex, Data);
        }
Example #8
0
        public CookDetailView(MabiCooker Main, int DataIndex, Cook Data, ListBox FavView, List <Stuff> StuffData)
        {
            InitializeComponent();

            if (Properties.Settings.Default.LastInfoPoint.X != 0 && Properties.Settings.Default.LastInfoPoint.Y != 0)
            {
                this.StartPosition = FormStartPosition.Manual;
                this.Location      = new Point(Properties.Settings.Default.LastInfoPoint.X, Properties.Settings.Default.LastInfoPoint.Y);
            }

            this.Selected    = Data;
            this.FavListView = FavView;
            this.MainWindow  = Main;
            this.DataIndex   = DataIndex;
            this.StuffData   = StuffData;
            UpdateData(DataIndex, Data);
        }