public SortItemCommand(nisan nisan) { this.manager = nisan; }
public SortDateCommand(nisan nisan) { this.manager = nisan; }
public ResetFilterCommand(nisan nisan) { this.manager = nisan; }
public SortSoldToCommand(nisan nisan) { this.manager = nisan; }
public FilterPendingOrderCommand(nisan nisan) { this.manager = nisan; }
public FilterNameCommand(nisan nisan) { this.manager = nisan; }
public CommitSvnCommand(nisan nisan) { this.manager = nisan; }
public MarkDoneCommand(nisan nisan) { this.manager = nisan; }
public SaveCommand(nisan nisan) { this.manager = nisan; }
public GenerateSvgCommand(nisan nisan) { this.manager = nisan; }
public RemoveOrderCommand(nisan nisan) { this.manager = nisan; }
public CreateOrderCommand(nisan nisan) { this.manager = nisan; }
public void Initialize(nisan nisan) { foreach (object obj in nisan.Items) { if (obj is nisanOrder) nisan.Orders.Add(obj as nisanOrder); else if (obj is nisanInvoice) nisan.Invoices.Add(obj as nisanInvoice); else if (obj is nisanPurchase) nisan.Purchases.Add(obj as nisanPurchase); } this.ordersView = CollectionViewSource.GetDefaultView(this.Orders); try { // get last updated date string oldFile = ".svn" + Path.DirectorySeparatorChar + "text-base" + Path.DirectorySeparatorChar + FILENAME + ".svn-base"; GetLastUpdated(oldFile); // create empty new item compare to last svn commit nisan old; nisan.LoadFromFile(oldFile, out old); //for (int i = nisan.Items.Count - 1; i < nisan.Items.Count - old.Items.Count; i--) //{ // if (nisan.Items[i] is nisanOrder) // this.NewItems.Add(nisan.Items[i] as nisanOrder); //} int i = this.Orders.Count; while (this.NewItems.Count < nisan.Items.Count - old.Items.Count) { this.NewItems.Add(this.Orders[i - 1]); i--; } } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex); return; } }